Update AdvancedState.java