public static boolean serialize(Config config){
        File file = new File(CONFIG_FILE_NAME);

        try {
            if(!file.exists())
                if(!file.createNewFile())
                    return false;

            FileOutputStream fileOut = new FileOutputStream(CONFIG_FILE_NAME);
            ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);
            objectOut.writeObject(config);
            objectOut.flush();
            objectOut.close();
        } catch (IOException e) {
            e.printStackTrace();
            return false;
        }
        return true;
    }