Protected max reduction in check_board.
Collapse nested loop for further parallelization.