update score method