same with N-Queens