refactored highscore.rb