I’m trying to make a chrome extension that let’s you play snake on top of your window.

I’m trying to make it so that the game starts when the user clicks new game.
Right now it starts when the tab loads.
Any help would be appreciated
link to github repo