I'm sorry but this does not look good. You have serious corrosion on the motherboard. That clicking sound is probably the power supply resetting continuously because of short circuits on the board.
The only possibility it to completely remove the motherboard and carefully clean off the corrosion. Distilled water and a toothbrush. But I wouldn't be too hopeful.
And you'll probably have to get a new charger.