No need to to reference the points array in line drawFunc

We can just use the x and y properties instead.