public ArrayList<String> getWords() {
			// Create a list to return
			ArrayList<String> list = new ArrayList<String>();
			//If this node represents a word, add it
			if (isWord) {
				list.add(getPathWord());
			}

			// If any children
			if (!isLeaf) {
				// Add any words belonging to any children
				for (int i = 0; i < children.length; i++) {
					if (children[i] != null) {
						list.addAll(children[i].getWords());

					}

				}

			}

			return list;

		}