private void applyFlank(char[][] board, int x, int y, int xInc, int yInc, char player, char opponent){
		int origX = x, origY = y;
		
		while(true){
			x += xInc;
			y += yInc;
			
			if(x < 0 || x >= SIZE || y < 0 || y >= SIZE)
				return;
			
			if(board[x][y] == player)
				break;
			else if(board[x][y] != opponent)
				return;
		}
		
		xInc *= -1;
		yInc *= -1;
		
		while(x != origX || y != origY){
			board[x][y] = player;
			
			x += xInc;
			y += yInc;
		}
	}