Now I have read the code I see what you mean about a conflict on pin 9.
Yes, you have both a servo and a brake on pin 9.
Now, I don't know servos, but I don't think they can do multiplexing with other functionality.
You will have to rearrange your pins somewhat to use different ones.