Simple but fun puzzle :) Did you consider faster (or instant) "cooldown" time before the next move?
I wanted for it to be instant actually, but I couldn't fix the code for it, will try in the future now that i have time