Implemented a countdown timer to give the game and end time.