game_player_state in javascript