fix bug where goblins would get stuck in a door-opening loop