public void actionPerformed(ActionEvent e) {
        if (type == 1) {
            if (!Game.p.getJump()) {
                if (!Animation.Animation) {
                    if (!isonFloor()) {
                        FoG();
                        Game.p.setJump(false);
                    }
                } else {
                    Game.p.setdY(0);
                }
            } else {
                jump();
            }
        } else if (type == 2) {
            if (!Game.p.getJump2()) {
                //fix this after animation is compatible with Hail
                if (!Animation.Animation) {
                    if (!isonFloor2()) {
                        FoG2();
                        Game.p.setJump2(false);
                    }
                } else {
                    Game.p.setdY2(0);
                }
            } else {
                jump2();
            }
        }
    }