code check for me please

im not gonna lie, i have no idea how i would use them.

but im not really going to need to shorten the code unless adding the buttons i want is going to double the amount of code. (size doesnt seem to be an issue ATM)

thanks for the loop and table info though, can i get an example of what would convert into what?
if it helps the 16x24 is 6 separate 8x8 grids wired together