ArrayList<Labyrinth> LoadFile(File file) throws Exception {
        try {
            ArrayList<Labyrinth> labyList = new ArrayList<Labyrinth>();
            String extension = "";
            int i = file.getName().lastIndexOf('.');
            if (i > 0) {
                extension = file.getName().substring(i + 1);
            }
            if (extension.equals("zip")) {
                UnZipper DeZipper = new UnZipper();
                Stack<Labyrinth> labyStack = DeZipper.launchGUI(file);
                int a = 1;
                while (labyStack.size() != 0) {
                    labyList.add(labyStack.pop());
                }
                return labyList;
            } else if (extension.equals("laby")) {
                LabyToSingleFile labyGenerator = new LabyToSingleFile();
                Labyrinth laby = labyGenerator.toLaby(file.getAbsolutePath());
                labyList.add(laby);
                return labyList;
            } else {
                throw new Exception("Vous ne pouvez utiliser que des fichiers .zip ou .laby");
            }
        } catch (Exception e) {
            throw e;
        }
    }