Implementation of Finite State Machine Models on the Artificial Intelligence System of Characters in The Game