public Fireball(String type, int x, int y) {
        //take the type
        this.type = type;
        if (type.equals("Quade")) {
            if (Game.p.getRight()) {
                MISSILE_SPEED = 7;
                img = new ImageIcon(Player.PATHWAY + "2D Fighter Quade Folder (Sprites and Shit)\\Random Game Things\\fireballyolort.gif").getImage();
            } else {
                MISSILE_SPEED = -7;
                img = new ImageIcon(Player.PATHWAY + "2D Fighter Quade Folder (Sprites and Shit)\\Random Game Things\\fireballyolo.gif").getImage();
            }
        } //code to throw hail's ice bolts
        else if (type.equals("Hail")) {
            if (Game.p.getRight2()) {
                MISSILE_SPEED = 7;
                img = new ImageIcon(Player.PATHWAY + "2D Fighter Quade Folder (Sprites and Shit)\\Random Game Things\\iceball1rt.png").getImage();
            } else {
                MISSILE_SPEED = -7;
                img = new ImageIcon(Player.PATHWAY + "2D Fighter Quade Folder (Sprites and Shit)\\Random Game Things\\iceball1.png").getImage();
            } //code for the boss's missiles
        } else if (type.equals("Boss")) {
            img = new ImageIcon(Player.PATHWAY + "2D Fighter Quade Folder (Sprites and Shit)\\Random Game Things\\missile.gif").getImage();
            MISSILE_SPEED = 2;
        }
        width = img.getWidth(null);
        height = img.getHeight(null);
        this.x = x;
        this.y = y;
        visible = true;
        distance = 0;
    }