    private func findBlockHeight(col:Int, row:Int, pixels: Pixels) -> Int {
       var height = 1
       let x = convertTile(col)
-      for r in row..<Const.rows {
+      var r = row
+      while true {
          wasVisited[col,r] = true
          // If we are in the last row, stop here
          if r == Const.rows - 1 {

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

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

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