Remove unnecessary is not None

row[j:j + 4] will include piece that was just placed, so at least one
has to not be None, so if they are all equal none of them are None.
Check if row[j:j + 4] is all equal using sets