How can I change the GameState?

I went exactly through them and still don’t have any idea how to achieve what I want from C++