@Override
    public void initConfiguration() {
        //read the file
        if(configFile != null){
            try{
                BufferedReader reader = new BufferedReader(new FileReader(configFile));
                boolean readingData = false;
                String key = "";
                String line = reader.readLine();
                
                while(line != null){
                    if(line.contains("}")){
                        readingData = false;
                    }
                    if(readingData){
                        if(key != null || !key.isEmpty()){
                            configurationItems.putValue(key, line);
                        }
                    }
                    if(line.contains("{")){
                        readingData = true;
                        key = line.subSequence(0, line.indexOf("{")).toString().trim();
                        configurationItems.addKey(key);
                    }
                    line = reader.readLine();
                }
            }catch(Exception e){
                e.printStackTrace();
            }
        }
        
        //set the settings of the game
        setInitialSettings();
    }