private static String solve(String data) {
		int[] game = new int[16];
		boolean complete = true;
		int i = 0;
		for (int c : data.toCharArray()) {
			if (c == '.') {
				complete = false;
			}
			game[i++] = c;
		}

		for (int[] d : h) {
			int count = game[d[0]] + game[d[1]] + game[d[2]] + game[d[3]];
			if (count == xwon1 || count == xwon2) {
				return "X won";
			}
			if (count == owon1 || count == owon2) {
				return "O won";
			}

		}

		if (!complete) {
			return "Game has not completed";
		} else {
			return "Draw";
		}
	}