AI Loop

Combined Code for IGVC
Needs to be checked still