Adds end menu, game reset, and game replay

Adds the end-game menu, which allows the player to select if they want
to reset the game, or exit. If they exit, call the process.exit()
function. If they reset, the board is reset and the game.turn counter
is reset to zero. The game is then restarted.