finished move functions

move function now works