Wandering Enemy in unity

Im making a top down shooter in unity. The enemy ai travels straight to the middle before actually wandering when I put in the code. What should I do to fix that? I copy the code in this video:https://www.youtube.com/watch?v=FdNervYWmcE

using System.Collections.Generic; using UnityEngine;  public class EnemyWander : MonoBehaviour {     [SerializeField]     float speed;     [SerializeField]     float range;     [SerializeField]     float maxDis;     Vector2 Waypoint;     // Start is called before the first frame update     void Start()     {         setNewDes();     }      // Update is called once per frame     void Update()     {         transform.position = Vector2.MoveTowards(transform.position, Waypoint, speed * Time.deltaTime);         if(Vector2.Distance(transform.position,Waypoint) < range)         {             setNewDes();         }     }     void setNewDes()     {         Waypoint = new Vector2(Random.Range(-maxDis, maxDis), Random.Range(-maxDis, maxDis));     } }  

The Shaman wandering spirit Lore grants bonus arcane spells, is there a spell level limit to what spells can be chosen?

The Shaman wandering spirit Lore grants bonus arcane spells, is there a spell level limit to what spells can be chosen?

The hex says:

Arcane Enlightenment (Su): The shaman’s native intelligence grants her the ability to tap into arcane lore. The shaman can add a number of spells from the sorcerer/wizard spell list equal to her Charisma modifier (minimum 1) to the list of shaman spells she can prepare. To cast these spells she must have an Intelligence score equal to at least 10 + the spell’s level, but the saving throw DCs of these spells are based on her Wisdom rather than Intelligence. When she casts these spells, they are treated as divine rather than arcane. Each time the shaman gains a level after taking this hex, she can choose to replace one of these spells for a new spell on the wizard/sorcerer spell list.

Emphasis mine.

The only limit seems to be on casting the spells. Does this mean you choose all high level spells, but are limited by the level of spells you can cast as a shaman?