def readWords(filename): 
    # a function to read from the file user inputs
    # and make a dictionary such that keys are words and  values are hints
    """ Read in the list of possible secret words and their corresponding hints """
    file = open(filename,'r')
    content = file.read()
    file.close()
    lines = content.splitlines()
    Dict={}
    for line in lines:
        new = line.split()
        Dict[new[0]] = new[1]
    return Dict