Fixed AI bugs, removed many print statements for cleaner output. Seems to work well enough to deploy in the actual app.