renamed Location to displayWord and expanded on function