monitored nqueen example