Cartesian product iterator/generator. Use it for generating the board. Remove some unnecessary slices.