Changed the arrays to lists in NavMeshQuery