Are you sure you want to use that way to connect the motor ? that's a series connection, most would recommend the parallel connection.

A+ Red
A- Black
B+ White
B- Green

Yellow & Blue, connected together but going nowhere, just insulate once joined.
Orange & Brown, connected together but going nowhere, just insulate once joined.