So the method I gave you didn't work for you?
Because you do mean if you are in the game and not just that the game is running.
Else, you just check around to see after some "sticky" offsets that have an "main" value in the "lobby" or in the game.
Like, I found 1 that changes into the map name. (That I gave you.)
Or you can try to look in the range of your health. There should be an offset there that changes when you are in-game. (No, not the health, but something close to it.)