fixed bug in addWord
finished base part of gui