public void update(){
        move();
        action();
        checkLasers();

        if(health<=0) {
            alive = false;
            if (this instanceof Minions) {
                for(int q=0;q<objects.size();q++){
                    if(objects.get(q)==parent&&kind==1){
                        parent.count--;
                    }
                }
            }
        } else if (health>maxhealth){
            health=maxhealth;
        }

    }