server side movement code