command line implementation of the Nim game with AI that uses basic machine learning