def tree_in_path(map_line,map_x_coord):
    """
    Checks if a tree is in the x-cord of the map line, looping if x is > len(map_line)

    returns: True if a tree is in the path, False otherwise
    rtype: Bool
    """
    offset = map_x_coord % len(map_line) # module operater for rollover
    return map_line[offset]=='#'