fixing minimax