It actually works as i wanted!
It has just 1 problem...after some rounds both numbers dissapear. But okay, i just refresh the page.
I also did this for my site, it's a small arcade machine with a mini pixel of this game haha
Edit: i think i'll make these as f2u for any project.