Finite-state machine addon for HaxeFlixel