Started on minimax and typedefs