Did a little refactor. Minimax still screwy.