New Datatype and minimax algorithm