update score (lesson17)