topScores functionality extracted to ScoreBoard class