finalized guessing game with all requested requirements set forth in the assignment.