Predefined int matrix to update via serial from Processing

It is more clear now. Then just need to convert the multi-dimensional matrix to one single matrix. If I get it correct the following calculation would give me the location address to read or write of the value I want.

prsBtState[x][y];
address = (x * 8) - (8 - y) - 1;