Whoops, sry for the typo error, the typo error.
the move.z is supposed to be inside the while