Mole Unearther Negatives aren't working

Working on the Mole Unearther project and in the points section i can’t get the applyMissPenalty function to work it will only ever add points. Can someone help me with my code? Thank you!

let updateScore = (points) => {

    score += points

}

// user successfully hit the mole, so reward the user with 5pts

const applyHitReward = () => {

  // display how many points the user will gain

  this.displayRewardText();

 

  updateScore(5);

  // display the new score to the user

  this.updateScoreText();

};

// user missed the mole, so penalize the user by taking away 5pts

const applyMissPenalty = () => {

  // display how many points the user will lose

  this.displayPenaltyText();

  

  updateScore(-5);

  // display the new score to the user

  this.updateScoreText();

};