removed unncessary for loop in getWords() function in BoggleGraph.java