There is a bug, if a user clicks on the form page twice or more times. It will start multiple games. Instead when the user clicks on submit have the submit button disabled, unless the post request returns and error. Also we do not need to change window.location as the server will send a redirect to the client instead.
There is a bug, if a user clicks on the form page twice or more times. It will start multiple games. Instead when the user clicks on submit have the submit button disabled, unless the post request returns and error. Also we do not need to change window.location as the server will send a redirect to the client instead.