Minor bug fix to generateRandomGrid method

I was checking for the existence of a digit incorrectly. I am not quite
sure as to the implications of this bug.