seem to have gotten line segment intersection working