added event handler to detect window resize events and methods to change height and width of header and game areas