Implementation of Finite State Machine (FSM) to handle behaviour for NPC. States include Idle, Patrol, Pursue, Attack, Flee