Updated file parsing in WordSearch.java; still shows unwanted behavior.