Sensor to detect ball in a cup
No need for individual sensors. Instead, make the bottom transparent; aim a camera at the cup bases. Use opencv running on the Pi to detect the objects and tally them.

For the lights, use an addressable RGB strip. You can singulate the lights physically as needed to mount them next to the the cups.