Hooked up the minimax algorithm. Seems to be working.