Mastermind Groups