Your aim is to get more than 30 points before the timer goes out. If you fail with less than 30 points the game automatically stops itself.
Most of the credit goes to my Father! He supported me through the long and strenuous journey of programming this game! JK.