For a grid with columns, the profile has bits. Bit = means column is filled at the current boundary. Example: , mask = .
Columns and are filled, columns and are empty. Transition: placing a domino in column - (horizontal) changes mask from to (column now filled). Or placing a vertical domino in column : changes mask from to and expects column to be filled in next row.