Changed setBoard() method to check and update the status of the subgame.