def is_location(player, name):
    """
    Checks if text matches the name of an adjacent tile that is connected to
    the current tile

    :param text_game_maker.player.player.Player player: player object
    :param str name: text to check
    :return: True if text matches adjacent tile name
    :rtype: bool
    """
    for direction in player.current.iterate_directions():
        if direction and direction.matches_name(name):
            return True

    for loc in player.current.items:
        if name in loc:
            return True

    return False