public static void setupStory( Story story, String indexFile ){ 
        String indexPath = System.getProperty("user.dir") + indexFile;
        try{
            //Add all the scenes to story tree
            Scanner sc = new Scanner(new File(indexPath));
            while(sc.hasNextLine()){
                boolean battle = false, end = false;
                // index, prompt, filename, isBattle()
                String[] data = sc.nextLine().split("=");
                Story sub = new Story();
                //System.out.println(data[0]);
                if( data[3].equals("true")){
                    battle = true;
                } else if(data.length > 4){
                    //System.out.println("here be pirates");
                    if( !data[4].equals("END")){
                        //System.out.println("SUB");
                        setupStory(sub, "/scenes/" + data[4]);
                    } else {
                        end = true;
                    }
                }
                if(sub.isEmpty()){
                    sub = null;
                }
                story.add( Integer.parseInt(data[0]), new Scene(data[1], data[2], battle, sub, end));
                //System.out.println("Read scene.");
            }
        }
        catch( FileNotFoundException e ){
            System.out.println("File not found.");
        }
    }