public void findGames(ArrayList<Game> games)
    {
        String name;
        String path = ".";
        String fileName;
        File folder = new File(path);
        File[] listOfFiles = folder.listFiles();

        for(int i = 0; i < listOfFiles.length; i++)
        {
            if(listOfFiles[i].isFile())
            {
                fileName = listOfFiles[i].getName();
                
                if(fileName.endsWith(".txt") || fileName.endsWith(".TXT"))
                {
                    for(int j = 0; j<fileName.length(); j++)
                    {
                        if(fileName.charAt(j) == '.')
                        {
                            name = fileName.substring(0, j);
                            Game game = new Game(name);
                            games.add(game);
                            System.out.println(games);
                        }
                    }
                }
            }
        }
    }