AI Programming with Finite State Machines in Unity