Minor fixes, moved Minimax to a separate module