def drawBlock(self, canvas):
    if self.firstDraw:
        self.display = []
        for texture in self.texture:
            if (texture[0] == 'rect'):
                self.display.append(canvas.create_rectangle(((self.x + texture[1]) * BLOCK_SIZE), ((self.y + texture[2]) * BLOCK_SIZE), ((self.x + texture[3]) * BLOCK_SIZE), ((self.y + texture[4]) * BLOCK_SIZE), fill=texture[5], width=0))
            elif (texture[0] == 'oval'):
                self.display.append(canvas.create_oval(((self.x + texture[1]) * BLOCK_SIZE), ((self.y + texture[2]) * BLOCK_SIZE), ((self.x + texture[3]) * BLOCK_SIZE), ((self.y + texture[4]) * BLOCK_SIZE), fill=texture[5], width=0))
            elif (texture[0] == 'polygone'):
                self.display.append(canvas.create_polygon([(((self.x + x) * BLOCK_SIZE), ((self.y + y) * BLOCK_SIZE)) for (x, y) in texture[1]], fill=texture[2], width=0))
        self.firstDraw = False
        self.texture2 = self.texture
    elif (self.texture == self.texture2):
        pass
    else:
        for texture in self.texture:
            canvas.delete(texture)
        self.firstDraw = True
        self.drawBlock(canvas)
        self.texture2 = self.texture
def drawBlock(self, canvas):
    if self.firstDraw:
        self.display = []
        for texture in self.texture:
            if (texture[0] == 'rect'):
                self.display.append(canvas.create_rectangle(((self.x + texture[1]) * BLOCK_SIZE), ((self.y + texture[2]) * BLOCK_SIZE), ((self.x + texture[3]) * BLOCK_SIZE), ((self.y + texture[4]) * BLOCK_SIZE), fill=texture[5], width=0))
            elif (texture[0] == 'oval'):
                self.display.append(canvas.create_oval(((self.x + texture[1]) * BLOCK_SIZE), ((self.y + texture[2]) * BLOCK_SIZE), ((self.x + texture[3]) * BLOCK_SIZE), ((self.y + texture[4]) * BLOCK_SIZE), fill=texture[5], width=0))
            elif (texture[0] == 'polygone'):
                self.display.append(canvas.create_polygon([(((self.x + x) * BLOCK_SIZE), ((self.y + y) * BLOCK_SIZE)) for (x, y) in texture[1]], fill=texture[2], width=0))
        self.firstDraw = False
        self.texture2 = self.texture
    elif (self.texture == self.texture2):
        pass
    else:
        for texture in self.texture:
            canvas.delete(texture)
        self.firstDraw = True
        self.drawBlock(canvas)
        self.texture2 = self.texture