The game end when you either run out of time (and lose) or clear the pyramid of cards.
In the final round you must complete the game in 3:30. The first level gives you 5 minutes to complete it and the remaining time declines by 10 seconds for each round. This is a 10-level timed game where you try to clear a pyramid of cards by summing cards which add up to 13.