Change handling of graphics window init/deinit

Instead of initializing the graphics window only when it's about to
appear and deinitializing it when returning to the main menu, the
graphics window is now initialized in "init()" and not deinitialized
until "deinit()".