def empty_h(coord_set, origin, left_idx, right_idx):
    """Makes sure no conflicts occur when a word is placed horizontally.
    
    :param coord_set: Set of all 'filled' coordinates.
    :param origin: Starting (x,y) index for the new word to be placed.
    :param left_idx: The left 'edge' for the new word.
    :param right_idx: The right 'edge' for the new word.
    :return: True if there is no conflict, False otherwise.
    """
    # print(origin)
    top = origin[1] - 1
    bot = origin[1] + 1
    ex = origin[0]
    for idx in range(left_idx, right_idx + 1):
        if idx == ex:
            continue
        # print((idx, top))
        # print((idx, bot))
        if (idx, top) in coord_set or (idx, bot) in coord_set:
            return False

    return True