added an enumeration representing the states of a moving door