Game->Counter[] looks correct, but I'm not sure what Game->Max[] does here. I think you meant: "Game->MCounter[]" (M = Max).
Also you want to use"=" instead of "==" there. "=" to set a value, and "==" to test the values for equality (equals).
That looks like it should get it working. :)