restore doOneMove.m routine