added logic to check rows for unique possibilities