def get_directions(filename):
    """gets the directions from the file
    
    Args:
        filename: name of the file

    Returns: 
        a list containing lists of the directions eg. return[0] is the list of
        directions from the first line of the file. return[1] is the list of
        directions from the second line of the file.
    """
    text_file = open(filename, "r")
    input_strs = text_file.readlines()
    text_file.close()
    directions = []
    for input_str in input_strs:
        directions.append(input_str.split(','))
    return directions