I'd be looking at ignition switches, kill switches, anything with an electrical contact that could be failing, or look for frayed wires, loose wires. I wouldn't be to ambitious to pull the flywheel if you don't have to. for testing you could also figure out how to bypass switches just to test, or I think that can be done with a voltmeter or ohm tester, but I was never really good at that myself.