Adding a new isNearEdge() function to both the generator and the populator.