added function called updateUserScores