Added max velocity to movement script