def find_from_to(piece, from_array, to_array):
	'''
	Retruns (x1, y1), (x2,y2) which represnts the movement of the piece
	from from_array to to_array
	'''
	from_location=()
	to_location=()
	for i in xrange(len(from_array)):
		for j in xrange(len(from_array)):
			if to_array[i][j] != from_array[i][j]:
				if piece == from_array[i][j]:
					from_location= (j,i)
				if piece == to_array[i][j]:
					to_location = (j,i)
	return from_location,to_location
dataset/ETHPy150Open nivm/learningchess/chess/complexmove/simplemove.py/find_from_to/original