these are bullet connectors
usefull and easy way to join wires together.
Don't pull the pins out, you'll break them or the plug, get some of these and cut the wires and swap them over or twist them together and bond with a drop of solder and then tape up (connectors are far easier and easily undoable as well)