Added keeping track of the player statistics and displaying them at the end of the game.