computed_angle = angle_of_line(path[-10][0],path[-10][1],path[-1][0],path[-1][1])
In this line of code, why choose the tenth point from the bottom to calculate the Angle, and why not some other point? Can the value of "10" be changed? What is the basis for the modification?