updating code to use new Phaser version