Functions added

Function to
Randomly choose a word
To Encode the chosen word