Thanks for the replies guys.
So, you have another screen for these stuff and you just take the player to that screen when the game stops or it's over.
I wonder, doesn't that affect the gameplay? For instance, my game turned out to be an infinite jumper now (lol). So, that means if the player falls, the game should be over. And that means, the player should be able to see what's going to happen when the game begins so that he can have time to react (for example, press "left" key to prevent the player from falling down and the game from an instant end. Ugh... I mean, if I have a Pause screen, the player won't be able to see what's next.
Another concern for me would be preserving the game state, which I have never tried to do. The whole idea of pausing the game is to be able to start from the exact spot you left. I don't know how to do that. Any guides for this?
I'll have to get the whole project and play with it, compile it etc. I hope that is okay for you. Of course I'm not gonna distribute it. I won't use the code, but I might take inspiration from it, as the whole point of me looking at that code is to learn how you guys do it