add better detection of game state and display some info