Instead of choosing either gold or elixer when upgrading walls. Put a slider bar in place to allow for both gold and elixer and let the player choose the allocation of each to obtain the total amount instead of one or the other.