Rough Minimax Implementation

Cleaning code pending.