pseudocodes and lays outline for mastermind