angular mastermind implementation