Moved Window-related code into GameWindow