Placing N queens in a chess.