If the player does not control a character, AI does.

(state machine)
(state machine)