Moved wordle payload build into separate function