It's the same principle as Tetris, only the blocks turn into sand when they land. Video of the gameplay. You can play it here.