Replaced getSurroundingTiles() with custom iterator.