moved orderedstatemachine to src folder