added compChooseWord fn