Refactor to represent internals of block with shared ptr.
Eliminate switch and additional foreach.
Rename first/second members to x,y.  Add Gameboard declaration, add row/column conversion functions.