def all_neighbors(x,y,arr):
	"""Returns all neighbors including diagonals"""
	neighbors = []
	for i in [-1,0,1]:
		for j in [-1,0,1]:
			neighbors.append((x+i,y+j))
	neighbors = [i for i in neighbors if i != (x,y)]
	return neighbors