Bad. You're mixing tropical fish with cold water fish. A comet goldfish shouldn't be in a 20 gallon tank, it should be in a 55 gallon tank or a pond.
Also, mollies thrive in brackish water.
Maybe the wattage on your light is too high or something, the fish shouldn't be hiding when the light is on.