honda trx300 not firing

I have a 1991 honda trx300fw that will start and run at times and other times will not. Previous owner did some modifications to the wiring on the on/off engine switch and I have been trying to fix it back. Motor turns over fine. The oil light stays on and doesn’t cut off even when it does decide to run. Strange thing is when you’re cranking on the engine if you turn the key off at the same time it will fire for a brief second. Continuity checks out on ignition switch. Tried a good coil from another bike and still didn’t fire. I know it is probably something simple but I am at a lose. Any help would be appreciated.