copied adv robot code into simple robot