ks0159 motor problem

Don't change lots of things at once. Go back to the original code you posted and change nothing except for swapping over the positive and negative wires to the one motor that is turning the wrong way.

It will now turn the correct way. If it doesn't then you have not changed the right wires.

Steve