Program for drawing point-by-point path