public static void main(String[] args) {
		// TODO Auto-generated method stub
		ticTACtoe game1 = new ticTACtoe();
		game1.table = new char[3][3];
		game1.populate();
		game1.print();

		boolean win = true;
		int x1 = 0, y1 = 0;
		int x2 = 0, y2 = 0;
		int last=0;
		System.out.println("You will play against the computer and have the mark X");
		
		while (win) {
			
			boolean comp = true;
			System.out.println("enter a x and y value:");
			x1 = sc.nextInt();
			y1 = sc.nextInt();
			if (game1.set1(x1, y1))
				System.out.println("You set X at " + x1 + " , " + y1);
			else
				continue;
			
			if (game1.checkwin()) {
				System.out.println("It seems we have a winner");
				break;
			}
			while (comp) {
				x2 = game1.setterofcompx();
				y2 = game1.setterofcompy();
				if (game1.set2(x2, y2)) {
					System.out.println("Comp set O at " + x2 + " , " + y2);
					comp = false;
				} else
					comp = true;
			}

			System.out.println(countX);
			System.out.println(countO);
			game1.print();

			if (game1.checkwin()) {
				System.out.println("It seems we have a winner");
				break;
			}

		}
		if (countX > countO)
			System.out.println("Winner is player1");
		else
			System.out.println("Winner is computer");

	}