First is to make sure you have slack because the engine likes to move in all sorts of directions and wires expand and contract with temperature. Then I like to strip the wires about a half inch from the ends. Don’t twist them up yet! Get your other end and push the frayed ends into each other then twist them together! Oh and before this step put shrink tube on the wire. Or you can use electrical tape but it’s ugly and will unravel over time. After twisting them together, use your soldering iron to heat the wire ends up and add solder! Now cover with shrink tube and shrink it with heat. Now you have a proper good looking connection.