Haxe State Machines