made changes to calcReturn(), whichUpgrade(), and added a getCPS() function