Moved double wildcard check from match to getBest