Index: sdl-game.cpp
===================================================================
--- sdl-game.cpp	(revision d8cf709c0d0adf8142fb20befd80d09d2e505e77)
+++ sdl-game.cpp	(revision c6f079386f2c1cc364200d95c0a19dffa50fb6f7)
@@ -261,6 +261,5 @@
    bool show_another_window = false;
 
-   // Main loop
-   bool done = false;
+   done = false;
    while (!done) {
       // Poll and handle events (inputs, window resize, etc.)
Index: sdl-game.hpp
===================================================================
--- sdl-game.hpp	(revision d8cf709c0d0adf8142fb20befd80d09d2e505e77)
+++ sdl-game.hpp	(revision c6f079386f2c1cc364200d95c0a19dffa50fb6f7)
@@ -6,4 +6,5 @@
 
 #include <SDL2/SDL.h>
+
 #include "IMGUI/imgui_impl_vulkan.h"
 
@@ -36,4 +37,6 @@
          const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
          void* pUserData);
+
+      bool done;
 
       // TODO: Good place to start using smart pointers
Index: vulkan-game.cpp
===================================================================
--- vulkan-game.cpp	(revision d8cf709c0d0adf8142fb20befd80d09d2e505e77)
+++ vulkan-game.cpp	(revision c6f079386f2c1cc364200d95c0a19dffa50fb6f7)
@@ -112,5 +112,5 @@
 
 void VulkanGame::quitGame() {
-   this->quit = true;
+   done = true;
 }
 
@@ -771,6 +771,4 @@
 
 void VulkanGame::mainLoop() {
-   this->quit = false;
-
    this->startTime = high_resolution_clock::now();
    curTime = duration<float, seconds::period>(high_resolution_clock::now() - this->startTime).count();
@@ -781,5 +779,6 @@
    lastSpawn_asteroid = curTime;
 
-   while (!this->quit) {
+   done = false;
+   while (!done) {
 
       this->prevTime = curTime;
@@ -805,5 +804,5 @@
             case UI_EVENT_QUIT:
                cout << "Quit event detected" << endl;
-               this->quit = true;
+               done = true;
                break;
             case UI_EVENT_WINDOW:
@@ -821,5 +820,5 @@
 
                if (e.key.keycode == SDL_SCANCODE_ESCAPE) {
-                  this->quit = true;
+                  done = true;
                } else if (e.key.keycode == SDL_SCANCODE_SPACE) {
                   cout << "Adding a plane" << endl;
Index: vulkan-game.hpp
===================================================================
--- vulkan-game.hpp	(revision d8cf709c0d0adf8142fb20befd80d09d2e505e77)
+++ vulkan-game.hpp	(revision c6f079386f2c1cc364200d95c0a19dffa50fb6f7)
@@ -241,5 +241,5 @@
       const vec3 LASER_COLOR = vec3(0.2f, 1.0f, 0.2f);
 
-      bool quit;
+      bool done;
 
       vec3 cam_pos;
