def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
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