Unfortunately the fish is probably doomed, if not now in the future from starvation. You didn't do enough research or you'd know that you need a large mature tank for a mandarin. The tank should be up and running a good year before you even try. It should be at least 100 gallons.