added corner detection to eliminate rectangles. Line splitting algorithm
is not working the way i want it too, however.