add updateScore method