buildings upgrade cost

added building upgrade cost functionality