fixed game_state loop