State Transition plugin for Phaser.js