wow, didn't think anyone actually played this. maybe I'll be arsed to keep working on it someday.
fwiw, it shouldn't freeze there, it just might take a moment or two to go onto the next door placing attempt. I added an exit condition if theres no place to put one or if it fails 500 times or something.