resize the game on window resize