Fixed nQueens demo