public void activateEffect(SpaceInvaders session) {
        if (this.bonusType == type.HEALTH) {
            if (session.player.getHealth() < 3) {
                session.player.setHealth(session.player.getHealth()+1);
            }
        } else if (this.bonusType == type.POWER) {
            session.player.bulletDmg = session.player.bulletDmg * 2;
        } else if (this.bonusType == type.SPEED) {
            session.player.speed = session.player.speed * 2;
        }
        try {
            Thread.sleep(this.lastingTime);
        } catch (InterruptedException ex) {
        }
        deactivateEffect(session);
    }