pong writed with phaser api