Update N queens.