cell counter and variables set

dynamic cell connecting makes a table, added variable names like
"waterFlow" to map the cells, making it easier to swap cells