private boolean isGranadeOnMyWay(int grenade_x, int grenade_y, int grenade_dir){
        int min_x = Math.abs(grenade_x-x);
        int min_y = Math.abs(grenade_y-y);
        int enX = grenade_x;
        int enY = grenade_y;
        int angle;
        
        if(x >= enX && y >= enY){
            // KVADRANT 1
            double pom1 = (double) min_y/min_x;
            angle=(int)(Math.atan(pom1)*(180.00/Math.PI));
            //System.out.println("Kvadrant 1 "+angle);
        }
        else if(x >= enX && y <= enY){
            // KVADRANT 4
            double pom1 = (double) min_x/min_y;
            angle=(int)(Math.atan(pom1)*(180.00/Math.PI));
            angle+= 270;
            //System.out.println("Kvadrant 4 "+angle);
        }
        else if(x <= enX && y <= enY){
            // KVADRANT 3
            double pom1 = (double) min_y/min_x;
            angle=(int)(Math.atan(pom1)*(180.00/Math.PI));
            angle+= 180;
            //System.out.println("Kvadrant 3 "+angle);
        }
        else {
            // KVADRANT 2
            double pom1 = (double) min_x/min_y;
            angle=(int)(Math.atan(pom1)*(180.00/Math.PI));
            angle += 90;
            //System.out.println("Kvadrant 2 "+angle);
        }
        
       /*if(min_x < 20 || min_y < 20) {
            if(angle != 180)
            danger = true;
            return true;
        }
        if(min_x < 30 || min_y < 30) {
            danger = true;
            return true;
        }*/
        
        if(grenade_dir >= angle - 10 && grenade_dir <= angle + 10) {
            danger = false;
            return true;
        }
        else {
            danger = false;
            return false;
        }
    }