You can't sink current for 52 LEDs at 20mA each with a Mega - it's limited to 800mA total thru its VCC/GND pins.