def __init__(self, imagepath, name, pos = None,border=40):
        pygame.sprite.Sprite.__init__(self)
        component.__init__(self)
        self.imagepath = imagepath
        self.image = None
        self.original = None
        self.rect = None
        self.pos = pos
        if self.pos == None:
            self.pos = [100,100]
        self.dir = ""
        self.name  = name 
        self.update = self.sprite_logic().next
        self.screensize = (924,658)
        self.border = border
        self.__class__.allsprites.append(self)