This problem asks you to simulate the playing process of teris game. This problem needs no advanced algorithms but needs a lot of work and circumspection. To handle large board we may need to use LinkedList
to keep the board status to avoid large amount of cost of removing rows.
Read full article from Teris | Algorithm Notes