simplified conditional in getWordsOnBoard()