adding end of the game and making the score