Added code for ending the game, updated number display