creating move function on server
update