Exploring Finite State Machine Agents: Advanced Insights