added a getter to Word.java and Main class to display a word.