public static void main(String[] args) {
		LogicGame game = new LogicGame();
		while (true) {
			game.print();
			System.out.print("Enter coordinates separated by commas: ");
			Scanner in = new Scanner(System.in);
			String input = in.nextLine();
			String[] ints = input.split(",");
			int[] coords = new int[4];
			for (int i = 0; i < 4; i++) {
				coords[i] = Integer.parseInt(ints[i]);
			}
			sortCoord(coords);
			int[] playerHod = {coords[0]-1,coords[1]-1,coords[2]-1,coords[3]-1};
			if (game.is_AllowedHod(playerHod)) {
				if (game.makeHod(playerHod)) {
					if (game.is_Last()) {
						game.print();
						System.out.println("Congratulations!");
						break;
					}
					int[] tmp = null;
					game.aI(tmp, true, 5);
					game.set_Flag();
					game.print();
					if (game.is_Last()) {
						System.out.println("Game over!");
						break;
					}
				} else System.out.println("Turn is not allowed!");
			} else System.out.println("Turn is not allowed!");
		}
	}