Minimal tests added.
Minimax refactor 1