Fixed minimax()