This application generates on board 20 x 20 random fields where water is spilt. Then counts the number of pools - fields with spilt water that touch each other, prints their number and determines which pool is the largest one (shown highlighted).

In case of more pools with the same maximal size that one with the lowest number is highlighted. Isolated fields are removed from board.

1
111
231
23
22345
2245
226
76666
786666
78
7799
7771099911
121210911
13914
1314
15151513
151513161617
1318161617
1816
1919

Number of pools: 19
The largest pool consists of 9 fields being marked with number 6.