trying to call moveStage in loop