problem with pushing to the array orderedWords