implemented mastermind game