Basic State-Machine For Haxe/OpenFL Games