I had to play the game because our game was also based on "Only one second" ^.^
I had difficulty at first understanding the timing of attack and healing. I was spamming the attack and healing as fast as I could. It took me a bit to understand you can only trigger one when the timer is blue. After than it became more clear and enjoyable :)
Also kudos for posting the source code! :)