Correct the infinite loop error by setting the internal variable during the instantiation of the game object instead of trying to access the setter of the numberOfMatchingCards property before the game object is completely crated.
Correcting infinate loop

corrected the infinate loop found during the creation of the game object