def extract_measured_states(record, measured_list):
    """
    Given the following input:
        record: a list of all final states where the index of the list corresponds to the index in the quantum board
        measured_list: a list of index for qubits that have been measured by the player
    Return a dictionary of that maps the position that has been measured to the correspond state from record (This will be used to update the classic board)
    """
    result = {}
    for index in measured_list:
        result[str(index)] = record[index]
    return result