update score (lesson23)