modified DOMtra engine to allow for Level to be created outside the factory class