update score implementation