For Loop joins first and last point in array

Hi,

I’m trying to run a for loop through an array of points and draw debug lines between them. But the first and last points in the array get a line drawn between them which I don’t want. Please let me know what I’m doing wrong and how to fix it.