Added support for ending the game, new game, and making sure that no new actions are taken if the game is over