Cut down for refactoring.

DrawBlock function working correctly with empty rows.