public void checkEachChar(char[][] board, int i, int j, int rows, int cols) {
		int[] Xs = new int[rows * cols];
		int[] Ys = new int[rows * cols];
		int pos = 0, total = 0;
		Xs[total] = i;
		Ys[total++] = j;
		board[i][j] = 'A';
		
		while(pos < total) {
			for(int k = 0; k < 4; k++) {
				if(Xs[pos] + directX[k] > 0 && Xs[pos] + directX[k] < rows - 1 &&
						Ys[pos] + directY[k] > 0 && Ys[pos] + directY[k] < cols - 1
						&& board[Xs[pos] + directX[k]][Ys[pos] + directY[k]] == 'O') {
					Xs[total] = Xs[pos] + directX[k];
					Ys[total++] = Ys[pos] + directY[k];
					board[Xs[pos] + directX[k]][Ys[pos] + directY[k]] = 'A';
				}
			}
			pos++;
		}
	}