Wrap around aware path finding