Working on minimax.

All other parts should be working.