find path to closest dot now working