Library implementing minimax for arbitrary games