Move game window management into its own class