Implemented doorway generation