Partial Mastermind solution