The value of `i' goes from 0 to rows-1, so to test for the last strip we need `i...