That’s not totally wrong. Try separate things. Create a function that only handles what should happen, when the timer hits. Nothing about what you want to see, just the pure change that causes later the Ui change
My kids will be in bed in about 2 hours so there’s a little time left.