Using information theory to solve Mastermind