Replaced function that finds the edge boundary, with a function that finds the furthest codel (see Piet documentation).