for controlling the execution of the game in time