implements guess the number

Initial implemention of "Guess the number"
http://rosettacode.org/wiki/Guess_the_number