Working move function v1
Getting working move function
Merge branch 'sam_branch'