implemented nearest-point for slot-point for straights
nearest point for curves working

most likely only for left turning curves, but for now I don't care