public static void main(String[] args) {
		Board board = new Board();
		Scanner scanner = new Scanner(System.in);
		String mark = "x";
		int i=0;
		while(true){
			board.drawBoard();
			if (i%2==0)
				mark = "x";
			else 
				mark = "o";
			i++;
			
			try
			{
				int x = scanner.nextInt();
				int y = scanner.nextInt();
				board.setMark(mark, x, y);
			}
			catch(InvalidPositionException e)
			{			
				System.out.print(e.getMessage());	
			}	
			if (board.hasWinner())
				break;
		}
		board.drawBoard();
		scanner.close();
		System.out.print("Spiel zu ende! Gewonnen hat "+ mark);
	}