I assume that Ben made a mistake. He Pseudodoced it corretly but implemented it wrong.
The wrote for the first loop to loop through all letters in the guess, but used MyHiddenWordLength. It should be something like this
for (int32 i = 0; i < Guess.length(); i++)
{
//Compare letters against the hidden word
for (int32 j = 0; j < HiddenWordLength; j++) {
......
}
}