    private func findBlockWidth(col:Int, row:Int, pixels: Pixels) -> Int {
       var width = 1
       let y = convertTile(row)
-      for c in col..<Const.cols {
+      var c = col
+      while true {
          wasVisited[c,row] = true
          // If we are in the last column, stop here
          if c == Const.cols - 1 {

         }
         // Did not find right edge of block, so increment width
         width += 1
      }
      return width
   }

   //***************************************************************************

         }
         // Did not find bottom edge of block, so increment height
         height += 1
         // Next row
         r += 1
      }
   }
}

