Added control flow
Completed JS guess the number with feedback loop