Fixed trying to get property of non-object in game.php.