prepare minimax simulation