update function sell and upgrade tower