update N_Queens