update score (lesson18)