added the timing mechanism for the game