added check to see if lines that share a point overlap