If we check only one coordinate, then a problem may arise when, for example, start(1,2) is considered a neighbor of end(2,5). After all, they are adjacent along the X coordinate, even despite the large distance along the Y coordinate. The changes also take into account diagonal proximity checks.
If we check only one coordinate, then a problem may arise when, for example, start(1,2) is considered a neighbor of end(2,5). After all, they are adjacent along the X coordinate, even despite the large distance along the Y coordinate. The changes also take into account diagonal proximity checks.