Connectivity check using DFS Algo
1) Click Check Connectivity button to find all lit squares connected to base squares
2) Click Randomize button to generate a new random pattern
3) Rinse and repeat
Check Connectivity
Randomize