Made doors dynamically created and destroyed, like NPCs and enemies, gave them names and the ability to lock and unlock.