Simple state machine written in Objective-C (ARC)