Bugfixes to random word picking that were returning an undefined variable when the selected array index was too low.