ChoreBot JavaScript - isClicked Function

https://www.codecademy.com/paths/web-development/tracks/build-interactive-websites/modules/web-dev-interactive-websites/projects/chore-door

I am almost at the end of the project, however, I am having two problems.

1 - The isClicked function is not working, so I can “cheat” the game to win by clicking 3 times on a single door. even if the first door is the bot, and I click 3 times on the door, I will win.
2 - Ignoring this step, if I enable the startRound function, the doors won’t open and the isClicked function will still behave as described before.

let doorImage1 = document.getElementById('door1');

let doorImage2 = document.getElementById('door2');

let doorImage3 = document.getElementById('door3');

let botDoorPath = 'https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/robot.svg';

let beachDoorPath = 'https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/beach.svg';

let spaceDoorPath = 'https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/space.svg';

let closedDoorPath = "https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/closed_door.svg";

let numClosedDoors = 3;

let openDoor1;

let openDoor2;

let openDoor3;

let startButton = document.getElementById('start');

let currentlyPlaying = true;

const isClicked = (door) => {

    if (door.src == closedDoorPath) {

      return false;

    } else {

      return true;

    }

  }

  

  const isBot = (door) => {

    if (door.src === botDoorPath) {

      return true;

    } else {

      return false;

    }

  }

  

  const playDoor = (door) => {

    numClosedDoors--;

    if (numClosedDoors === 0) {

      gameOver('win');

    } else if (isBot(door)) {

      gameOver('lose');

    }

  }

const randomChoreDoorGenerator = () => {

    choreDoor = Math.floor(Math.random()*numClosedDoors);

    if (choreDoor === 0) {

        openDoor1 = botDoorPath;

        openDoor2 = spaceDoorPath;

        openDoor3 = beachDoorPath;

    }

    if (choreDoor === 1) {

        openDoor1 = spaceDoorPath;

        openDoor2 = botDoorPath;

        openDoor3 = beachDoorPath;

    } else {

        openDoor1 = beachDoorPath;

        openDoor2 = spaceDoorPath;

        openDoor3 = botDoorPath;

    }

}

doorImage1.onclick = () => {

    if(currentlyPlaying && !isClicked(doorImage1))

    doorImage1.src = openDoor1;

    playDoor(doorImage1);

  }

  doorImage2.onclick = () => {

    if(currentlyPlaying && !isClicked(doorImage2))

    doorImage2.src = openDoor2;

    playDoor(doorImage2);

  }

  doorImage3.onclick = () => {

    if(currentlyPlaying && !isClicked(doorImage3))

    doorImage3.src = openDoor3;

    playDoor(doorImage3);

  }

  startButton.onclick = () => {

      startRound()

  }

  gameOver = (status) => {

    if (status === 'win') {

        startButton.innerHTML = "You win! Play again?";

    } else {

        startButton.innerHTML = "Game over! Play again?";

    }

    currentlyPlaying = false;

  }

//  const startRound = () => {

//    doorImage1 = closedDoorPath;

//   doorImage2 = closedDoorPath;

//    doorImage3 = closedDoorPath;

//    numClosedDoors = 3;

//    currentlyPlaying = true;

//    startButton.innerHTML = "Good luck!";

//    randomChoreDoorGenerator();

//  }

//  startRound()

  randomChoreDoorGenerator()