Moving is now a function

Moving is handled through a function. (Cleaned code)