Может быть, вам следует сначала декодировать его, а затем попытаться проверить, если условие:
пример:
$arr = json_decode($GameState, true);
if(array_key_exists('message', $arr) && $arr['message'] == 'no game for given game_id'){
//do what you want
}
или, может быть, гораздо лучше сделать это:
$arr = json_decode($GameState, true);
if(array_key_exists('message', $arr)){
if($arr['message'] != 'no game for given game_id'){
echo "<h2> The Server is up and running </h2>";
}else{
echo "<h2> The Server is currently turned off </h2>";
}
}