/// <summary>
    /// The callback for a StateMachineBehaviour's enter event
    /// Sets up listeners for <see cref="Match.OnTurnEnded"/>
    /// </summary>
    /// <param name="animator">The animator</param>
    /// <param name="stateInfo">The current state info</param>
    /// <param name="layerIndex">The current layer</param>
    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        base.OnStateEnter(animator, stateInfo, layerIndex);
        this.animator = animator;

        GameFlow gameFlow = animator.GetComponent <GameFlow>();

        gameFlow.BeginTurnPlay();
        //Debug.LogFormat("Adding WaitForPlayerBehavior.OnTurnEnded as a listener to the current match.");
        gameFlow.match.OnTurnEnded += OnTurnEnded;
    }