Score counter for pinball machine

I suggest that you make D13 input pullup and connect it through the switch to ground.