updating the high scores when game ends