Those inner rotor kit's are not worth using.
They fail prematurely, and some of the,m won't even work out of the box new.
I would be fitting the stock YX160 stator, flywheel, loom and cdi back onto it, you will notice it wll have a lot better engine braking and not want to stall as much through the corner's etc.
Stator/Flywheel-
Magneto Stator Plate Flywheel Roller YX 150cc 160cc PIT PRO Trail Dirt Bike | eBay
Loom-
Wire Wiring Harness Loom 90cc 110cc 125cc 140cc 150cc PIT PRO Trail Dirt Bike | eBay
Cdi-
Ignition CDI Unit 50cc 90 110cc 125cc 150 Quad Dirt Bike ATV Buggy Trail PIT PRO | eBay
I would be checkin for a spark plug that look's a little wet, so you know it's getting fuel too
Also check the condition of the plug, they are about $5 new NGK C7HSA
It could have a blocked up pilot jet, or pilot circuit.
So might be worth pulling the carby down and giving it a decent clean out and blow some compressed air through it while you're at it.
Take the jet's out and mixture screw out and make sure the hole's through the middle are open, and the hole's across them
Blow the compressed air into the 2 or 3 small port's on the air filter side of the carby to check for blockage there too.
You should feel air coming out one of the hole's in the bottom of the carby where the jet's go
Look into the bottom of the hole where the pilot jet screw's into and make sure you can see light through the tiny hole.
Even poke a strand of copper wire through it to make sure there is no gum/varnish (dried up fuel) restricting it.
Stock setting for the mixture screw is around 1.5 turn's out from fully seated.