saving highscore after finishing a game