door added. StateFactory no longer in use.