This is a classical games called tetris. This will bring back old memories during the 90's when this games was popular. The games is endless play time which challenge the players endurance in tackling the puzzle.
The objective of this game is to manipulate these bricks, by moving each one sideways (if the player feels the need) and rotating it by 90 degree units, with the aim of creating a horizontal line of ten units without gaps. When such a line is created, it disappears, and any block above the deleted line will fall. When a certain number of lines are cleared, the game enters a new level. As the game progresses, each level causes the tetris bricks to fall faster, and the game ends when the stack of tetris bricks reaches the top of the playing field and no new tetris bricks are able to enter.