Prepare for the minimax