def make_cup_links(cups):
    """Reformat list of cups into a dict with cup pointing to next cups."""
    cup_links = dict()
    prev_cup = cups[0]
    for cup in cups[1:]:
        cup_links[prev_cup] = cup
        prev_cup = cup
    cup_links[prev_cup] = cups[0]
    return cup_links