updated movePeople logic