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.

1123
23
233
45
4456
447768
9468
910101011118
12121088
131414
13141516
1516
1715151616
17171815
1717181519
171717152019
1720

Number of pools: 20
The largest pool consists of 9 fields being marked with number 17.