Bounds check before interpolation to find walls