def get_neighbor(rows, ele):
	"""
	:param rows: lst, letters get from user
	:param ele: lst, current letter position
	:return neighbor: lst, the location tuple next to ele
	"""
	neighbor = []
	# find valid location tuples that in 3x3 grid centered by ele
	for x in range(-1, 2):
		for y in range(-1, 2):
			test_x = ele[0] + x
			test_y = ele[1] + y
			# see if test_x and test_y within rows
			if 0 <= test_x < len(rows[0]) and 0 <= test_y < len(rows):
				if (test_x, test_y) != ele:
					neighbor.append((test_x, test_y))
	return neighbor