def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def line(self, x, y, length, horizontal):
		if horizontal:
			self.board[y,x:x+length] = self.color
		else:
			self.board[y:y+length,x] = self.color