changed move function
Merge pull request #6 from megafounder/move-refactor

changed move function