updated MoveToNextCell()