title: How to restart game contents without reloading the page in javascript
body: <p>For my snake game, I am trying to figure out how I can restart the game contents without reloading the page. Currently I am using <code>window.location='/'</code> to replay the game, but the issue is, when the page is refreshed the start screen loads.</p>
  <p>Is there a simple way to reset/reload game contents without reloading the page?</p>