Handle end game.