Forgot the actual movement code; it's a bit rudimentary still, but it works.