Dialog and screen resolution

Now the game can be used in every screen resolution and it will show a
dialog when the player hide the game or press X