Doors auto-close after N turns, NPCs can now navigate doors in a more sane way (also get blocked by other NPCs + players), players can't be trapped in houses, reinstated the random pathfinding code.