move the game board code into a distinct script tag