Trying to do minimax