Got rid of redundant variables and renamed 'saved' to 'savedWord.'