electrical short? 06 800 efi

I have a 2006 sportsman 800efi went start it one day had nothing there for power though my battery was totally dead i put charger on it showed had good was not dead i pop the front up where fuses are thinking maybe a fuse is out all i did was wiggle fuse box a little i had power started fine see it the picture the power cord with purple connector if i move that cord push it in wiggle it battery light will come on machine runs fine. I was wondering what the issue may be.