A title skipped in one column can fill the next
Part 2 filled a row with one forward index, because a blocked title stayed blocked. Under the grid rule that is no longer true. A title blocked in column 0 may be free in column 1.
one forward index rescan per slot The index passed B at slot 0 and never comes back. A rescan finds B free in column 1.
So under the grid rule each slot scans the whole row again. It costs O(width × L) per row instead of O(L). For a homepage, with a few slots and rows of a few dozen titles, that is nothing. Say the cost anyway, and say why the fast version doesn't apply here: its one assumption broke.
Keeping both rules in one function is easy once you see it: the only difference is the question "is this title blocked for slot j?". Under the screen rule the answer is title in shown, and under the grid rule it is title in columns[j]. Write one blocked(title, j) and one fill loop.
The code in the editor has the one-pass index from part 2, under the grid rule. Find the bug in fill_row_grid and fix it, so each slot looks at the whole row.