Changed breakBlocks() from recursive to iterative.