def unhappy_point_lin(list, index):
    """
    Checks if a point is unhappy. Returns False if happy.
    """
    if index == 0:
        if list[index] == list[index + 1]:
            return False
    if index == len(list)-1:
        if list[index] == list[index - 1]:
            return False
    else:
        if list[index] == list[index - 1] or list[index] == list[(index + 1) % len(list)]:
            return False
    return True