How implementation of MinManx function for Nim Game in C++ language???