Fix UD behavior. State is destructed after changeState

It was brought to my attention that StartMenuState is destructed after the call to app.changeState(), which could lead to undefined behavior when this method finishes.