public boolean check2(int[][] a, int row, int col) {
		int i = 0;
		int j = 0;
		boolean flag = true;
		while (i < row) {
			if (a[i++][col] == 1) {
				flag = false;
				break;
			}
		}
		while (j < col) {
			if (a[row][j++] == 1) {
				flag = false;
				break;
			}
		}
		while (row >= 0 && col >= 0) {
			if (a[row--][col--] == 1) {
				flag = false;
				break;
			}
		}
		return flag;
	}