Fuzzy State Machine Modelling of Agents and their Environments for Games