Changed foreach implementation for Gobstones.