Flow chart of ninjathat.com translated to state machine