Homework Submission.

secret_number.rb homework submission.
@ajburg this block of code can be added to a method to cleanup the code