added a config.js file
better version of game states
merge with baptiste