The ending was kinda a last minute thing, but when I realized how well it fit with the mechanics I couldn't resist, haha.
Yeah, I generated the floors room by room as you entered them, and there was no guarantee of any specific thing showing up on a floor (though I did try to make stairs common enough you would usually find them). I'm aware of that bug with the door linking, but I had already spent over three days on the rooms alone and it didn't happen all that often, so I let it be. In retrospect it might be easier to generate the whole floor at a time, which would probably fix both of those problems.