If you're adding sugar to the tank then perhaps add some coffee too. Sorry couldn't resist.
The sugar might be to help the denitrating bacteria break down the nitrates but it depends on if you have big pieces of live rock in the tank or a denitrating filter. The anaerobic bacteria that convert nitrate into nitrogen gas need carbon to work efficiently, and they can get that from sugar. They also get it from alcohol and whatever organic matter is rotting in the water. If you don't have much live rock or a denitrating filter then do big water changes to dilute and lower the nitrate levels.
Copperband butterflies can be problem fish, especially big ones and if they are newly imported then it is possible the fish was suffering from cyanide problems. Adult butterflies are picky eaters as well and the combination of stress from being caught and flown half way round the world, going into the shop tank and then yours, and not eating a normal diet, can lead to the demise of the fish.
If you had the fish for a few months and it was feeding well, then it is most likely a disease of some sort.
Did the fish show any symptoms before it passed away?
What does the goby look like, ie: gills flared, breathing heavily, etc?
When was the last time you did a water change and how much did you change?
When was the filter last cleaned?
How long has the tank been set up?
Is there much live rock in the tank?