02 Sportsman No Spark

I have 2002 Sportsman 400 with no spark. Well actually. Every once in a while I will get one single spark. But very-very inconsistent.

I replaced the spark plug, new stator, new pulsar and wiring. Now I am moving on to replacing the ignition coil. If that doesn’t do it, I will move onto the CDI.

Any suggestions before I go and spend more money on these items?

Thanks
Keith