New State machine tutorial

Thanks this is just what i was looking for to translate a growing messy project into something reasonable.