Version which counts number of boards checked
Cache board state attempt 1
But there's something still broken -
after analysing an empty board, the cache
ends up only populated with 9 boards, and
takes a very long time too.
Somehow, we're throwing away most of the state.