Fixed error in getWord() function in class BrickList.