Local avoidance on a grid graph; any way to keep agents on the valid parts of the grid?

New forum is online, and here is the new URL RVONavmesh equivalent for GridGraph (updated : code inside)