public static String getStatName(int idx) {
        switch(idx) {
            case S_HP:
                return "HP";
            case S_ATTACK:
                return "Atk";
            case S_DEFENCE:
                return "Def";
            case S_SPEED:
                return "Spd";
            case S_SPDEFENCE:
                return "SpDef";
            case S_SPATTACK:
                return "SpAtk";
            case S_EVASION:
                return "Evas";
            case S_ACCURACY:
                return "Acc";
            default:
                return "Bad stat index";
        }
    }