Got the build to work, and changed segmentsIntersect to return a position of intersection, as well as rewrote path intersection