Corrected updateScore