The core of MasterMind game.