update score (lesson19)