Implemented naive board decomposition.