public void clear() { for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { squares[i][j] = 0; } } }