primitive movebaddies function