Move window resize event handler to renderer, call drawPlayer() when appropriate.