fix isDoorOpen to support multiple doors