Added the upgrade function to towers.