          }
          // Did not find right edge of block, so increment width
          width += 1
-      }
-      return width
+         // Next column
+         c += 1
+      }
    }
 
    //***************************************************************************

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

   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 {
