Minimax algorithm from spec, and api changes!
Broke minimax, almost there!