Doing AI this week. Here's the first pass at a state diagram for the AI opponent: