There are two bugs in the code :-)

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++)  {
                          ......
            }
     }

It’s done on purpose because he plans to add checks in place to ensure that function only gets called if the lengths are the same.