import pickle


def loadStatesFromFile(filename):
    """Loads a list of states from a file."""
    try:
        with open(filename, 'rb') as inputfile:
            result = pickle.load(inputfile)
    except:
        result = []
    return result