Fixed minimax function in computer