Adjust Minimax alg to our project