Use set-default-priority for minimax.
Fix bug when checking for work in the priority queues.