please for the love of god don't let there be any more pathfinding errors.
fix for edge case

the top right edge, in this case.