for (int x=0; x<3; ++x) { for (int y=0; y<3; ++y) { table[x][y] = 0; } }