private static String getWinningConfig(String[] configIndex, int rows, int columns, int rows1, int columns1){
		StringBuilder winningBuilder = new StringBuilder();
		String config = configIndex[0];
		
		if (config.length() == rows * columns){
			for (int i = 0; i < rows; i++){
				winningBuilder.append("\n").append(config.substring(i * columns, i * columns + columns));
			}
		} else {
			for (int i = 0; i < rows1; i++){
				winningBuilder.append("\n").append(config.substring(i * columns1, i * columns1 + columns1));
				for (int j = 0; j < columns - columns1; j++){
					winningBuilder.append("*");
				}
			}
			for (int i = 0; i < rows - rows1; i++){
				winningBuilder.append("\n");
				for (int j = 0; j < columns; j++){
					winningBuilder.append("*");
				}
			}
		}


		return winningBuilder.toString();
	}