I think I fixed the stack overflow error. npcs moving between floors still not perfect, but it seems to work.
Cells can now be activated! Bookcases kinda work!

And furniture is on the way!