Development Finite State Machine Agent in Edugame