Updated WordSearch with file reading