If "code" is true I want the buttons and the LEDs to activate so the user can input a value associated with that particular choice.
How does code get a new value?
Most definitely, along with loops and functions.
Put the pin numbers of the inputs in one array. Put the pin numbers of the outputs in another array.
In loop, create a for loop to read the inputs, if necessary. If any input is high, call a function to set all pins LOW, and set the one pin HIGH (or all pins HIGH, and that one pin LOW).