use of phaser function to scale the game