Tiny cleanup: make a forceInRange(x,y) function rather than repeat logic.