Store window as an instance variable in Player.