StateManager box search and reach logic fixed