minor fixes in moving square line segment and determination of the first edge point not intersecting a node
square line adjust