N-Queens and N-QueensII