completed the getScores method