Some bugs solved, new bugs appearing... For the current bug, a possibility is checking if the new point is between the begin and end vectors