def check(spotList, occupied, width, height):
	"""
	_Purpose:
	takes a move coord and returns a score (max 4) based on how many free spaces are directly around the move

	_Parameters:
	spotList (list): xy tuples of positions to score
	occupied (list): xy coords all occupied spaces on board 
	width (int): width of board
	height (int): height of board

	_Returns:
	score (int): score of move
	"""
	score = 0
	for spot in spotList:
		if not (( (spot[0]-1,spot[1]) in occupied) or (spot[0]-1 < 0)): #left
			score += 1
		if not (( (spot[0]+1,spot[1]) in occupied) or (spot[0]+1 > width-1)): # right
			score += 1
		if not (( (spot[0],spot[1]-1) in occupied) or (spot[1]-1 < 0)): # up
			score += 1
		if not (( (spot[0],spot[1]+1) in occupied) or (spot[1]+1 > height-1)): #down
			score += 1
	return score