implement time limit to the game.