Cleaning unnecessary code and added a global ref to the Phaser.Game instance