Anytime I run into a machine that stalls I do the same thing. I ride it and as soon as it sputters or dies I reach down and shut the petcock off. Then I push it back, grab tools and drain the carb. If there is little to no fuel in the carb, you know that you have a fuel delivery problem. It could be a fuel filter, or internal fuel filter if applicable, the petcock or the tank may not be venting. If I have gas in the carb when it dies and I've ruled out the obvious, I then start by testing the coil, stator and CDI (if you can) and checking every single connection on the harness. Especially if you see peeling electrical tape, then you know someone has been in the harness or it's unraveling and water may be getting in. And sometimes the pins don't hold inside the male or female connectors, they push back when they are plugged in together. You have to check the back side of the plug to check on that...
All our government does is distract us while they steal from us, misspend our tax $ and ruin our country