Fix bug where min was using calculating max's move.