fixed mastermind index error