L293D motor driver-Working and Programming Logic