I don't have switch such as DPDT and I want to prevent it from being short circuit when both switch are on. Can I use logic gate IC to do this and still able to run the motor?