public static boolean isValidTetriminoMatrix(int[][] matrix) {
        int rows = matrix.length, cols = matrix[0].length;
        matrix = Matrices.padMatrix(matrix);
        int count = 0;
        
        for (int i = 1; i < rows + 1; i++) { //ranges adjust for padding
            for (int j = 1; j < cols + 1; j++) {
                if (matrix[i][j] != 0) {
                    count++;
                    
                    if (count != 1 //Block must have adjacent block, unless it's length 1
                            && matrix[i - 1][j] == 0
                            && matrix[i][j + 1] == 0
                            && matrix[i + 1][j] == 0
                            && matrix[i][j - 1] == 0) {
                        return false;
                    }
                }
            }
        }
        
        return true;
    }