public AICharacter(String name, AnimatedSprite sprite, int x, int y, int speed,Direction direction)
  {
    super(name,sprite,x,y,speed);
    this.name = name;
    sprite.play("walk");
    this.direction = direction;
    if(name.equals("star")||
       name.equals("Money")||
       name.equals("HpUp")||
       name.equals("Shroom"))
        isBonus = true;
  }