Refactor inputExerciseWord

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Wunderbar

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Move things around

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>