validate AI positions using obstacle query