cleaning up some code for quick_game to work and preparing phaser.js