Found the issue with shift-row impl.

Didn't test for a completely empty row (full of X).
Only need to remove duplicates and entries with 0 value.