AI work
Fixed compiling bugs
AI probably done