I am currently trying to make a connect4 game by HTML,CSS and JS. In that game , I want to make a system such that if the player unexpectedly close the browser , the game won't be break out and if he again click the 'Play' button , the game restarts from the current position. What kind of languages , frameworks or database types I can use? and a sample code is somewhat expected to understand. Thank You