Moved updateScores to data