re-factored how I set up the game parameters based on the HTML form content