falling rock detect, iterationCount.

Miner can detect falling rock. Use a counter to avoid long time to find
path.