Need help on 12V DC motor

Hi guys, I just recently bought my new Arduino Uno and learned a few basics on it.
I've got 12V DC motor.

Basically, I will have 2 push buttons (call them Push A and B)
Push A is the main button. if A is pushed the motor will rotate counter-clockwise for an exact time, A is pushed again, the motor will rotate clockwise for some time, and go on...
but the point is, Push B, is a stopper. If Push B is "1", the motor will not rotate on either condition, no matter A pushed many times. So Push B must be in "0" condition so the motor would rotate.

any suggestion? Do I need the H Bridge? How to make the DIY one?
the program?

Thanks in advance...

Yes a H-bridge / motor shield will be needed and you may want to look up simple state machines. I can tell you a simple latch will do for button A, and an IF statement for button B.