Moves function now working