moved resolveDoor to common functions in bwi_planning_common