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
23
442355
677
867
888867
8886697
1097
101010997
1010101091111
10
101212131314
1213131314
1214
1515
161617181818
1617
17
1717

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