Implemented a timer for the game