An implementation of Fuzzy State Machine (FuSM) in ActionScript 3.0 for AI bot/agent in a video games