Use steal_states to check if thread is active.
Add new minimax.