CR10 V3 extruder stepper motor wiring/pin out

I have a CR10 V3 and it came with motor 42-40 but my new OEM hotend I got from Amazon has motor 42-26.

I tried it and now when it is supposed to extrude, it retracts and when it is supposed to retracts, it extrudes.

What wires do I need to flip to make it work? Thanks!