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.

1122
31
331
34
4
5
5
5
56
66
7896
78910
781010
8101011
1011
121210
1313
1313

Number of pools: 13
The largest pool consists of 7 fields being marked with number 10.