Prompt choices

<b>function prompt_choices(name, choices, default=None)</b>: when passing a default value to the function, it was not returning the default value, but instead going into an infinite loop. I have written a fix for it so that it now returns a default value. Also I have written a couple of test cases for the function.