Finished implementing heuristic minimax algorithm