def strategy_expensive(cookies, cps, history, time_left, build_info):
    """
    Always buy the most expensive item you can afford in the time left.
    """
    info_object = build_info.clone()
    items_list = info_object.build_items()
    item_to_buy = None
    max_cost = float("-inf")

    for item in items_list:
        item_cost = info_object.get_cost(item)
        if (item_cost - cookies) / cps > time_left:
            continue
        elif item_cost > max_cost:
            max_cost = item_cost
            item_to_buy = item

    return item_to_buy