When it acts up again, yank one of the plug wires and see how it acts.
Then try it again, but with the other plug wire.
Tell us what you find.
If it just has only one plug wire, then post the engine's model numbers so we at least have a clue how to help you.
BTW, yanking a plug wire may be shocking, so use some insulated pliers, or your brother-in-law.