refactored some door init stuff into door object