Small Engine Troubleshooting Problems? Ask a Mechanic Now.
If machine backfired, I would check the flywheel key, push rods, and also the ignition coil(s).
It honestly sounds like you are just having a timing issue. The valves are not opening or closing when they are supposed to and the firing of coil is not in time with engine. Not a reason to need a new engine. I would get a 2nd Opinion for sure.