But specifying a board of arbitrary length and width seems the wrong way to go about it then.
I would think better to do whole board 9x9 positions including the relevant pattern. Demo board with a subscriber account would work as proposed earlier in this thread.
May I also point out 9x9 opening book as a good resource.