refactored movement script to use character motor variables
merge