you need 3 yellow wires to your new stator, one red wire as hot lead to your minimum 10,000uf capacitor/ main 20A fuse/to kill switch etc..., and one green wire to a good fresh bare frame ground. they are on ebay for 15 bucks.
btw, do not enclose your PMA in the left side case unless you want a fried stator. lotta heat build up combined with motor. I run with round cover removed, and even drilled the cover housing for ventilation on one motor. if you ride with shoelaces, double knot them to prevent any entanglement with spinning rotor...