use ScoreMap instead of HashMap