public static void main(String[] args) {
        
        int n=10;
        
        PolyominoGenerator.generatePolyomino(n);
        ArrayList<boolean[][]> polys = new ArrayList<>();
        boolean[][] poly = {{false,false,false},{false,false,false},{false,false,false}};
        try {
            PolyominoInputStream i = new PolyominoInputStream(n);
            while(poly!=null){
                poly = i.read();
                if (poly != null) polys.add(poly);
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(PolyominoGeneratorTester.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(PolyominoGeneratorTester.class.getName()).log(Level.SEVERE, null, ex);
        }
        for (boolean[][] p:polys){
            System.out.println(arr(p));
        }
        
        System.out.println(polys.size());
    }