String createMatrixText(int [][] matrix) {
        StringBuilder stringBuilder = new StringBuilder();
        for ( int x = 0 ; x < matrix.length ;  x ++ ) {
            stringBuilder.append("[");
            for ( int y  = 0 ; y < matrix[x].length ; y ++ ) {
                stringBuilder.append(matrix[x][y] + ",");
            }
            boolean deleteLastComma = stringBuilder.charAt(stringBuilder.length() - 1)  == ',';
            if ( deleteLastComma ) {
                stringBuilder.deleteCharAt(stringBuilder.length() - 1);
            }
            stringBuilder.append("]\r\n");
        }

        return stringBuilder.toString();
    }