You should not be using the exact coordinates in the Floor ranges. Instead, a minimum range should be slightly lower than the actual coordinate is and the maximum range should be a bit larger than the actual coordinate is. I.e.
I.e. if your X coordinates…