public GameLayout(String locationsFile, String connectionsFile, String actionsFile) throws Exception, FileNotFoundException, IOException{
  //Locations*************************************************************************************************
    BufferedReader reader = new BufferedReader(new FileReader(locationsFile));
    locations = new TreeMap<String, LocationDescription>();
    while(reader.ready()){
      String name = reader.readLine();
      int entry = Integer.parseInt(reader.readLine());
      String description = reader.readLine();
      String item = reader.readLine();
      LocationDescription newLocation = new LocationDescription(name, entry, description, item);
      locations.put(name, newLocation);
      String extra = reader.readLine();
      if(!extra.equals("_")){
        throw new Exception("The locations file was not set up properly. Found " + extra + " but expected _");
      }
    }
    reader.close();
  //Connections************************************************************************************************
    BufferedReader readertwo = new BufferedReader(new FileReader(connectionsFile));
    connections = new TreeMap<String, ArrayList<String>>();
    while(readertwo.ready()){
      ArrayList<String> links = new ArrayList<String>();
      String name = readertwo.readLine();
      int numConnections = Integer.parseInt(readertwo.readLine());
      for(int i = 0; i < numConnections; i++){
        links.add(readertwo.readLine());
      }
      String extra = readertwo.readLine();
      if(!extra.equals("_")){
        throw new Exception("The connections file was not set up properly. Found " + extra + " but expected _");
      }
      connections.put(name, links);
    }
    readertwo.close();
  //Actions*****************************************************************************************************
    BufferedReader readerthree = new BufferedReader(new FileReader(actionsFile));
    actions = new TreeMap<String, ArrayList<Action>>();
    while(readerthree.ready()){
      ArrayList<Action> actionsByLocation = new ArrayList<Action>();
      String name = readerthree.readLine();
      int numActions = Integer.parseInt(readerthree.readLine());
      for(int i = 0; i < numActions; i++){
        String actionName = readerthree.readLine();
        int power = Integer.parseInt(readerthree.readLine());
        double money = Double.parseDouble(readerthree.readLine());
        actionsByLocation.add(new Action(actionName, power, money));
      }
      String extra = readerthree.readLine();
      if(!extra.equals("_")){
        throw new Exception("The actions file was not set up properly. Found " + extra + " but expected _");
      }
      actions.put(name, actionsByLocation);
    }
    readerthree.close();
  }