issue with corner values in the random list of word. Not getting the
last inserted word