Start implementing the minimax algorithm

Initial commit for implementing the minimax algorithm. This is
incomplete and breaks when it tries calling calculateHV().