Analysis of Mastermind strategies