im trying to make a preset ammo counter that has three preset numbers to count back from till empty. im gonna have 2 buttons, one to select the mode and one to act as a switch for the counter trigger, and 3 leds to indicate what mode is active. ive tried doing just about every possible code from scratch and combinations of codes that ive found and tried to modify to my needs. this is what i have now. what it does now is get stuck on the mode select without advancing to display the mode its supposed to be in. any help on this front would be greatly appreciated.

im using autodesk circuits to build the circuit and run the code simulations.the build can be found here. <circuit build>