from typing import List
from typing import Tuple


def condense_matches(matches: List[Tuple[int, ...]]) -> List[Tuple[int, ...]]:
    """
    For a set of chemical environment matches condense them to a unique list of matches
    taking into account matches that appear forwards or backwards.
    """
    new_matches = []
    for match in matches:
        if match not in new_matches and tuple(reversed(match)) not in new_matches:
            new_matches.append(match)
    return new_matches