complete looped solving almost working - needs to get more centered on the end point, and there might be a more fundamental issue