Bug with ArrayList

yes it jump to the wrong point…if you delete
points.remove(i-1);
it work exactly how i want…