Ball with flashing leds

A ball I printed with a PCB inside. Idea was to make a ball that would start flashing on impact. The harder the impact, the quicker the flash frequency or color change. Battery operated. Can be glued so it is water tight. Switch on/off with magnet.