subroutines

only digital pin 22 is wired with a push button between ground and input and a pull up resistor of 1 K to 5V
The board is detecting the change of the button that's not the problem.