import re


def create_dict_move(filepath):
	""" Creates the dictionary for the output names. it reads
	the line starting with %% in the ceptre file to then use 
	it to give everything names
	
	Parameters:
	filepath (String) - Filepath to the ceptre file.

	Returns:
	dic (dictionary) - dictionary of players labels.
	"""
	dic = {}
	with open(filepath) as f:
		for row in f:
			row = row.strip()
			if(re.match(r'%%', row)):
				list_row = row.split(" ")[1:]
				dic[list_row[0]] = list_row[1:]
	return dic