Updated move function
Update move function