Help With Game Of Life

I’m almost done with my game of life but there’s one problem when it runs on chrome. If you scroll down on any part of the screen it pauses the game, and then when you click on the screen it runs again. Problem is I already have a pause button and a run button to do those things. I don’t want this to keep happening and it only happens on chrome. Please look at my code and give me feedback on where the problem might be.