changed function to wordle