I am going to do an engine swap on my old John Deere lawn mower. I need a little bit of help figuring out how to wire up the new engine. The engine I am going to be swapping in is a Yanmar 2V78C-TX. The guy I bought the engine from had it wired up to test run it. After I got home, I changed the oil and had it running for about a minute when something exploded on the engine. It was smoking very heavily, but it was still running. I shut it down as quickly as I could and disconnected the battery. The engine stop solenoid overheated and exploded. I think something was not wired properly causing it to overheat. There are three wires coming out of the solenoid; a red, white, and black wire. Also, I was looking at the wiring on the voltage regulator. There are three wires that were cut that I need to know what to do with them. One of them is a heavy gauge red wire which I assume goes to the battery and the other two I havent a clue. I have looked all over the internet for a wiring schematic with no luck. Does anyone know where these wires go? I have a new solenoid coming and I don't want to blow it up too. Any help is greatly appreciated.