corners plus the middle square in the central square. Always
decide on a specific counting pattern to avoid bias. For cells that overlap a ruling, count a cell as "in" if
it overlaps the top or right ruling, and "out" if it overlaps the bottom or left ruling.