To complete each level, clear all blocks before time runs out. To clear blocks, click on matching pairs. Only blocks that have 3 free sides can be clicked on. To rotate the game, click on the arrows or use your arrow keys.
If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).