Moved updateScores to own file