N-queens sample working.