def make_comeback_strategy(margin, num_rolls=5):
    """Return a strategy that rolls one extra time when losing by MARGIN."""

    def s1(score,opponent_score):
        if ((opponent_score - score) >= margin):
            return num_rolls+1
        else:
            return num_rolls
    return s1