update the score