upgrade N-Queens