eliminated faulty naive implementation from updateClosestLine that dealt with final points