public static void queens(int col) {
		if (col == 9)
			System.arraycopy(board, 1, allSol[nsol++], 1, 8);
		else
			for (int row = 1; row <= 8; row++)
				if (check(row, col)) {
					board[col] = row;
					queens(col + 1);
				}
	}