Implemented finding and edge of a polygon with the most free space in front of the edge