Added a ternary

Added a Ternary to check to see if the user supplies a number within
range. This resulted in me having to duplicate the code b/c I do not
know how to properly do a loop yet.