def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def filled_rectangle(self, x, y, w, h):
		self.board[y:y+h,x:x+w] = self.color