Refactored ScoreComparer.