Updated the algorithm for Draw Row()