update mastermind