private boolean load(){ //returns true if loaded, false if new files created
        System.out.println("Loading files...");
        FileInputStream input = null;
        try{
            File file = new File("users.txt");
            if(!file.exists()){
                file.createNewFile();
                return false;
            }
            input = new FileInputStream(file.getPath());
        } catch (Exception e) { System.out.println(e); }
        Scanner scanner = new Scanner(input);
        //variables used for each user, pre-defined to prevent unneeded garbage collection
        String nameKey, name, password, boolCheck; int id; boolean isAdmin, isBanned;
        while (scanner.hasNextLine()){
            nameKey = scanner.nextLine();
            scanner.nextLine(); //opening bracket is skipped
            name = scanner.nextLine();
            id = Integer.parseInt(scanner.nextLine());
            password = scanner.nextLine();
            boolCheck = scanner.nextLine();
            isAdmin = (boolCheck.equals("1"));
            boolCheck = scanner.nextLine();
            isBanned = (boolCheck.equals("1"));
            scanner.nextLine(); //closing bracket is skipped
            //now to make the user...
            users.put(nameKey, new UserAccount(name, password, id, isAdmin, isBanned));
            System.out.println("Loaded user for key "+nameKey);
        }

        input = null;
        try{
            File file = new File("rooms.txt");
            if(!file.exists()){
                file.createNewFile();
                return false;
            }
            input = new FileInputStream(file.getPath());
        } catch (Exception e) { System.out.println(e); }
        scanner = new Scanner(input);
        //variables used for each user, pre-defined to prevent unneeded garbage collection
        //String nameKey, name; int id;
        while (scanner.hasNextLine()){
            nameKey = scanner.nextLine();
            scanner.nextLine(); //opening bracket is skipped
            name = scanner.nextLine();
            id = Integer.parseInt(scanner.nextLine());
            scanner.nextLine(); //closing bracket is skipped
            //now to make the user...
            chatRooms.put(nameKey, new ChatServerChatRoom(name, id));
            System.out.println("Loaded room for key "+nameKey);
        }
        return true;
    }