Properly control 12 Logical Operations for 3 motors