Updated word chain problem