Extract Game logic into a settings folder.

Move settings to global object gameSettings.
Add settings file and link in tests and html
Add settings logic into hardcoded settings logic.