public void check() {
		for (int i = 0; i < size; i++) {
			for (int j = 0; j < size; j++) {
				if (check1(i, j) || check2(i, j) || check3(i, j)
						|| check4(i, j)) {
					int tmp = getMatrix(i, j);
					System.out.println("Player " + tmp + " wins.");
					return;
				}
			}
		}
		System.out.println("No player wins.");
	}