Switched to do while loop so the randomlySelectedWord is only written to once