handle end game/new game