Another test
..xo..... x = black boundary
..xoo.... o = white boundary
..xxo....
...xo....
...xo....
...xxxo..
.....xo..
...xxxo..
...xooo..
white = 29 + 6.5 = 35.5
black = 26
turns into this: (note that i leave caputred pieces there for demonstration)
x.xooxoo. x = black boundary
oxxooooxo o = white boundary
xxxxo.oo.
xoxxooxoo
xx.xo.oox
oxxxxxooo
xxox.xoxo
.xxxxxooo
xoxxoooox
white = 10 + 6.5 + 6 = 22.5
black = 4 + 5 = 9