public void levelPlayer()
    {
        Random random = new Random();
        
        // Levels up player starting from 1 to current level.
        for (int i = 1; i < level; i++)
        {
            // CON, EVD, HIT, LUK, SPD, and STR has a 50% chance to increase by 1 per level
            // HP has two chances to increase by 1 per level.
            boolean increaseHp = random.nextBoolean();
            boolean increaseHp2 = random.nextBoolean();
            boolean increaseCon = random.nextBoolean();
            boolean increaseEvd = random.nextBoolean();
            boolean increaseHit = random.nextBoolean();
            boolean increaseLuk = random.nextBoolean();
            boolean increaseSpd = random.nextBoolean();
            boolean increaseStr = random.nextBoolean();
            
            if (increaseHp)
            {
                hpValue++;
            }
            
            if (increaseHp2)
            {
                hpValue++;
            }
            
            if (increaseCon)
            {
                conValue++;
            }
            
            if (increaseEvd)
            {
                evdValue++;
            }
            
            if (increaseHit)
            {
                hitValue++;
            }
            
            if (increaseLuk)
            {
                lukValue++;
            }
            
            if (increaseSpd)
            {
                spdValue++;
            }
            
            if (increaseStr)
            {
                strValue++;
            }
        }
    }