fixing updateScore syntax