added updateScores method