Function to move people