Built basic functionality to end game.