Is any thing wrong with my logic

I’m making components of each pond and in last connecting them and adding +1 for connected path.