I was thinking it was bc you're changing the content of the a tags whenever there's a level upgrade and that changing the content of the tags would make them flicker in and out of existence, but I just did something like that (changing the content at requestAnimationFrame speed) and it still registered clicks, on both buttons and anchors
so idk what bug causes this