@Override
    public void levelUp() {
        this.level++;
        this.nextExp *= 1.1;

        int total = 0;
        while (total == 0) {
            if (Math.random() > 0.5) {
                this.maxHP += 3;
                this.curHP += 3;
                total++;
                if (Math.random() > 0.8) {
                    this.maxHP += 2;
                    this.curHP += 2;
                }
            }
            // this.curHP = this.maxHP;

            if (Math.random() > 0.5) {
                this.strength++;
                total++;
                if (Math.random() > 0.8) {
                    this.strength++;
                }

            }

            if (Math.random() > 0.5) {
                this.defense++;
                total++;
                if (Math.random() > 0.8) {
                    this.defense++;
                }
            }

            if (Math.random() > 0.8) {
                this.agility++;
                total++;
            }
        }
    }