Fixed my bug with minimax