made a map method; working with a single word. Multiple words cause a loop