Bug on my game (my second one)

This is my second game, and the coins saves as random numbers, also, i cant fix the problem that
the “Rainbow candy” timer overlapp with the boss fight timer that makes the duration shorter/longer

Link