Migrate methods from minimax4j