private static int[] getSequence(boolean[][] polyomino){
        boolean[][] p = new boolean[polyomino[0].length+2][polyomino.length+2];
        int[] seq = new int[4];
        for (int x=0; x<polyomino.length; x++){
            System.arraycopy(polyomino[x], 0, p[x+1], 1, polyomino.length);
        }
        for (int i=0; i<4; i++){
            for (int x=0; x<p.length; x++){
                for (int y=0; y<p[0].length; y++){
                    if (p[x][y]){
                        boolean[][] pT = new boolean[p[0].length][p.length];
                        for (int m=0; m<p.length; m++){
                            System.arraycopy(p[m], 0, pT[m], 0, p.length);
                        }
                        seq[i]=getSeq(pT, x, y, 0);
                        x=p.length;
                        y=p[0].length;
                        if (i==3) return seq;
                    }
                }
            }
            boolean[][] pTemp = new boolean[p[0].length][p.length];
            for(int j=0; j<p[0].length; j++){
                for(int k=0; k<p.length; k++){
                    pTemp[p.length-k-1][j] = p[j][k];
                }
            }
            p=pTemp;
        }
        return null;
    }