def all_served(state, goal):
    """Checks whether all passengers in goal have been served"""
    for thisPassenger in state.served:
        if not state.served[thisPassenger] and thisPassenger in goal.served and goal.served[thisPassenger]:
            return False
    return True