Updated file taking into account Shirren's comments and making the code simpler

Hi Shirren - have updated secret number file for your comments and also made the code simpler.
Let me know your thoughts.
thanks
Bijal