Create movementfunction.lua

Code that handles movement of player onscreen.