replaces the previous PIXI code with Phaser code