update score (lesson21)