@Override
    public void takeDamage(int damage) {
        if (Math.random() > getAvoidPercent()) {
            if (damage > defense) {
                this.curHP -= damage - defense;
                System.out.println("the player takes: " + (damage - defense) + " dammage");
            } else {
                this.curHP--;
                System.out.println("the player takes: 1 dammage");
            }
        } else {
            System.out.println("the player avoids attack");
        }
    }