16*16 led matrix help

I've rewired the switches and changed the code to..

pinMode(button_a, INPUT); // button is input
digitalWrite(button_a, LOW); // initalize button as ON
pinMode(button_b, INPUT); // button is input
digitalWrite(button_b, LOW); // initalize button as ON

Also tried the different variations of the state and true/false

Unfortunately it's still only saving or deleting pixels on the first matrix.Almost as if the data from digital out of the first matrix is only outputting direction data but not data to store.