refactor to put Phaser stuff inside renderer