Ron's changes to fix AI taking 2 actions.