Electrical issues

OK So I have Sportsman 450 I did some work on it New Bendix, Rebuild Carb. I went and bought a new battery. Dumb Ass me just threw it in.I went to hook up the wires when i attached the POS the fan began to run with no key. I pulled Battery to find that the terminals were revers. OK so Now another new battery with the right terminal in the right place. I attached it and it started right up. within about 60 seconds the Battery Light and speedo indicator began to blink. I would turn the lights on it would stop for 30 sec then start to blink with the lights on. I would then Hit the winch in or out and it would stop again for 30 sec but would then start to blink again. What do we think fried the ECM or could it be the Voltage regulator And how could i test for each. Any suggestion would be great. Thanks