Procedurally decomposed state.js. Added easier user interaction for testing gameplay. Added Twerqle bonus scoring. Added end of game handling.