def avoid_hazards(future_head, data):
    """
    Return True if the proposed future_head avoids the hazards, False if it means
    you will hit a hazard.
    """
    result = True

    # Get the list of hazards
    hazards = data["hazards"]
    
    # If the future head is in a hazard, return False to mean you'll hit a hazard next turn.
    if future_head in hazards:
        result = False
    return result