Bug fixed in testEndOfGame method.