update solution for N-Queens