renamed and modified to use the new moving door states enumeration