Started working on rules to command motors according to distance sensor