So replacing the blue ground wire actually did it, it's just a male to female connector under there. It still seems like there's an electrical issue (the headlight flickers when I rev the engine) but the moped's running now. I'll open it back up and solder on a new wire soon.