def is_effective(x, y, eff_list):
	"""
	Function: Is there a valid path at the location.
	:param x: (int) x coordinate
	:param y: (int) y coordinate
	:param eff_list: (list) effective_list
	:return: (bool) Is there a valid path
	"""
	
	for check_x in (x-1, x, x+1):
		for check_y in (y-1, y, y+1):
			if check_x == x and check_y == y:
				pass
			else:
				if eff_list[check_x][check_y] == 1:
					return True
	return False