public boolean avoidAsteroid(){
        boolean hit=false;
        for(int b=0;b<objects.size();b++){
            if(objects.get(b).kind!=0)
                continue;

            boolean obstacle = collisionCircle((int)(x+vx),(int)(y+vy),h/2,(int)(objects.get(b).x),(int)(objects.get(b).y),(int)(objects.get(b).h/2));
            if(obstacle) {
                hit=true;
                double angle2=angle-angleBetween(b);


                if(compareAngle(angle,angle2))
                    setAngle(angle-Math.toRadians(2)*power);
                else
                    setAngle(angle+Math.toRadians(2)*power);

                objects.get(b).health-=power;

                //setAngle(angle+angleBetween(b));


                //angle+=angleBetween(b); //obstacle;//Math.toRadians(3)*power;

            }
        }
        return hit;
    }