added action code and methods to update the userScore server side