progress on moveTo algorithm