add when to end the game