We pulled a duplicate for loop out from the move method into its own
method callded D1.