Add calculation of scores at the end of the game.