move the movement code to the server