02 Honda Rancher 350 ES 2×4 shifting issue

Hello all, I thought I posted on this forum a couple of weeks ago, but I was unable to login and find my post. Oh well.
Anyways, I’m having some electric shifting issues.
The battery is good.
I just replaced the shift engine and the angle sensor.

Here’s my scenario:
When I’m riding, my speedometer will randomly go out and then shortly after my electric shifting will stop working. I posted on the forums and everyone suggested the angle sensor and shift engine or battery, so I replaced them all (minus the battery – which is good)
However, the problem still persists. Would I be crazy if I thought it was the speedometer? If it’s not the speedometer, the only thing left would be somewhere in the wiring harness/computer right?