I was playing Triforce Heroes and my battery was low. I put it on the charger and continued playing, as I was online. It then crashed, turning itself off. I turned it back on, just fine. I played a little more, then saved and turned it off, leaving it on the charger. After about an hour or two when it was fully charged I went back on. After staying on just the friend screen for a bit, I noticed the power light was both red and blue, making it purple. After a few minutes, it turned off again. I put it on the charger thinking it had died. I moved the charger and plugged it back in elsewhere. When I tried to turn it on again it worked. But then it crashed again. It was still on the charger, but the charging light was off. When the light came back it was flashing. I tried to turn it on again but the blue light just flashed on, then both went out. After this, I took the back off and messed with the battery. The charging light came back on and repeated previously stated events. This happened once more. I kept messing with the battery, trying to make it work again but it wouldn't.
Anyone know what's going on? I think it might've been Triforce Heroes because this hadn't happened before I played said game.