private static boolean isConfigWin(String[] configIndex, int rows, int columns){
		String config = configIndex[0];
		boolean isConfigWin = false;
		char[] configChar = config.toCharArray();

		String[][] configArray = new String[rows][columns];

		for (int i = 0; i < rows; i++){
			for (int j = 0; j < columns; j++){
				configArray[i][j] = String.valueOf(configChar[i * columns + j]);
			}
		}


		String[][] clickConfig;
		for (int i = 0; i < rows; i++){
			for (int j = 0; j < columns; j++){
				if (configArray[i][j].equals("*")){
					continue;
				}

				clickConfig = reveal(configArray, rows, columns, i, j);

				if (checkConfig(clickConfig, rows, columns)){
					isConfigWin = true;
					configArray[i][j] = "c";
					config = arrayToString(configArray, rows, columns);
					configIndex[0] = config;
					return isConfigWin;
				}
			}
		}

		return isConfigWin;
	}