Replace nested foreachs with yields in Board.