based on Complexity Explorable: " If you ask your XY - Self-organization of spatially arranged magnets"