Mastermind game implementation