public void addIwad(String iwad, String prefix){
        File[] iwadsBuff = iwads;
        String[] iwadsNamesBuff = iwadsNames;

        for (int i = 0; i < IWAD_NAMES.length; i++) {
            File iwadFile = new File(iwad);
            if (IWAD_NAMES[i].equals(iwadFile.getName().toLowerCase()))
                iwadCount++;
        }
        iwads = new File[iwadCount];
        iwadsNames = new String[iwadCount];

        for (int j = 0; j < iwadsBuff.length; j++) {
            iwads[j] = iwadsBuff[j];
            iwadsNames[j] = iwadsNamesBuff[j];
        }
        iwads[iwadCount - 1] = new File(iwad);
        iwadsNames[iwadCount - 1] = prefix+iwads[iwadCount-1].getName();

    }