added initial implementation of mastermind