Added functionality

Added ability to exit from the pause menu.
Added checking of the initial window size.