Fixed a problem that occured with the latest pull request.

Problemet var att gameplaystate inte var definierat.