Chore Door Project

let doorImage1 = document.getElementById("door1");
let doorImage2 = document.getElementById("door2");
let doorImage3 = document.getElementById("door3");
let startButton = document.getElementById("start")

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 openDoor1;
let openDoor2;
let openDoor3;
let numClosedDoors = 3;

let currentlyPlaying = true

const isBot = (door) => {
  if(door.src === botDoorPath) {
    return true;
  }
  else {
    return false;
  }
}

const isClicked = (door) => {
  if(door.src === closedDoorPath) {
  return false;
  } 
  else {
    return true;
  }
}

const playDoor = (door) => {
  numClosedDoors--;
  if(numClosedDoors === 0) {
    gameOver('win');
  }
  if(isBot(door) === true) {
    gameOver('lose');
  }
}

let 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
    }
    if(choreDoor === 2) {
      openDoor1 = beachDoorPath
      openDoor2 = spaceDoorPath
      openDoor3 = botDoorPath
    }
  }

door1.onclick = () => {
  if(currentlyPlaying && !isClicked(doorImage1)) {
    doorImage1.src = openDoor1;
    playDoor(doorImage1);
  }
}

door2.onclick = () => {
  if(currentlyPlaying && !isClicked(doorImage1)) {
    doorImage2.src = openDoor2;
    playDoor(doorImage2);
  }
}

door3.onclick = () => {
  if(currentlyPlaying && !isClicked(doorImage3)) {
    doorImage3.src = openDoor3;
    playDoor(doorImage3);
  }
}

const gameOver = (status) => {
  if(status === 'win') {
    startButton.innerHTML = 'You win! Play again?'
  }
  else if(status === 'lose'){
    startButton.innerHTML = 'Game Over! Play again?'
  }
  currentlyPlaying = false;
}

randomChoreDoorGenerator();

I can’t figure out why but when I am running this game once I click one door to see whats behind it if it is not the robot then it only lets me click the door with the robot behind it and not the other door. Help would be appreciated. Update: After running it a couple more times it looks like sometimes it actually prevents me from opening the door with the bot behind it too.