minor changes to minimax