Here's my AI implementation.

I created a new file to make sure I didn't overwrite anyone else's changes. I'm also adding an AI class with it.