modified calculateMinimumPotential and calculateMinimumPotentialDifference to be static in the proper header file