In a nutshell
Ok, in its raw form, here is what is happening:
The bridge and trolley will go "forward" (output 32+30 or 33+30)
When told to go back, inputs are correct, and outputs are correct, but it still wants to go forward (or left in the case of the trolley).
We are getting input 10, 11...