Improved the squiggle creation process by checking distance between all
points, not just consecutive points.