Got a working AI.
However, I don't believe this is a correct implementation of the minimax algorithm because this can easily be beaten by Zach.