public void removeEffects(Character character) {
        if (!character.getBuffs().isEmpty()) {            
            for (SkillEffect effect : character.getBuffs()) {
                effect.endEffect();
            }
            character.getBuffs().clear();
        }
        if (!character.getDebuffs().isEmpty()) {
            for (SkillEffect effect : character.getDebuffs()) {
                effect.endEffect();
            }
            character.getDebuffs().clear();
        }
        for (Skill skill : character.getSkills()) {
            if (skill.isUsed()) {
                skill.actionPerformed(null);
            }
        }
    }