fix end game logic to clear out everything and start a new game