def terminal_side_effect(state, depth_remaining, time_remaining):
    """ Side effect returns true if we reach a terminal state

    :param state: the state of the game to evaluate
    :param depth_remaining: true if there is depth remaining
    :param time_remaining: true if there is time remaining
    :return: true if we are terminating
    """
    if not depth_remaining:
        return True
    end_state_nodes = []
    for alpha in list(map(chr, range(101, 110))):  # iterate from e-m
        end_state_nodes.append(str(alpha))
    if state in end_state_nodes:
        return True
    return False