beds moving (starting code)