Refactored some of the highscore code.