movement script correct, though a bit messey perhaps