One longwinded way to get there is to take the code that handles one pot and copy it. Then change all the variables it uses and add a suffix, so for the currentPotValue, you'll have currentPotValue1, currentPotValue2 currentPotValue3 etc.
This quickly bloats your code and becomes annoying to wade through, especially if you have a bug that you've now replicated sixteen times.
Having done this, you will be in the right frame of mind to realize that currentPotValue can be an array and those irritating suffixes are array indexes.
A little after than, you'll notice that you can process your arrays with a for loop making your program a lot shorter.