def parse_nhl_play(play):
	"""
	Parse play details from a play-by-play dataframe

	Parameters
	----------
	play: pandas.DataFrame
		play information

	Returns
	-------
	play: pandas.DataFrame
		parsed information specific to our problem
	"""

	if play['Strength'] != '5x5':
		return None
	elif play['Ev_Team'] == play['Away_Team']:
		aw = True
		hm = False
		is_hm = False
	elif play['Ev_Team'] == play['Home_Team']:
		hm = True
		aw = False
		is_hm = True
	else:
		return None

	# if input isn't a string, return None
	details = play['Description']
	if not details:
		return None


	p = {}
	p['detail'] = details
	p['home'] = hm
	p['away'] = aw
	p['is_home_play'] = is_hm
	p['second'] = play['Seconds_Elapsed']
	p['is_shot'] = None
	p['is_shot_on_goal'] = None
	p['is_goal'] = None
	p['is_assist'] = None
	p['is_block'] = None

	if play['Event'] == 'SHOT':
		p['is_shot'] = True
		p['is_shot_on_goal'] = True
		return p
	elif play['Event'] == 'MISS' or play['Event'] == 'BLOCK':
		p['is_shot'] = True
		p['is_shot_on_goal'] = False
		return p
	elif play['Event'] == 'GOAL':
		p['is_goal'] = True
		if 'Assists' in str(play['Description']):
			p['is_assist'] = True
		else:
			p['is_assist'] = False
		return p


	return None