setup for minimax