AI Loop

Cleaned up AI variables and broken wires, program should be runnable