update second trial of n-queens