Code Not Working - CS1 Level 14 (Breakout)

The below code is not working. While the hero is able to break the weak door, it gets killed by spikes near the strong door without being able to break it. Message ‘I can’t get there’ is displayed (not part of below code).

// Free your friend, then clear a path to escape!
hero.moveRight();
hero.attack("Weak Door");
hero.moveDown();
while(true) {
    hero.attack("Door");
}

Welcome to the discourse @alok_kotnala!

After you attack the weak door, you have to move right once more before moving down to attack the Door.

Thanks! This worked like a charm!!