Predefined int matrix to update via serial from Processing

The button state values are declared as int. The a preset is loaded i read the corresponded values from the matrix and update the button state variable with it.

Is it wrong? Shall I use another data type?