Added an endGame function used to start a new game