Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 233e7365b23a92cee80637dade24f4b743f8fbb2)
+++ client/Client/main.cpp	(revision 03ba5e32cbb41bf55fbdec659680183b1f08ad0b)
@@ -70,4 +70,5 @@
 void joinGame();
 void createGame();
+void leaveGame();
 
 void error(const char *);
@@ -92,4 +93,5 @@
 Window* wndLobby;
 Window* wndGame;
+Window* wndNewGame;
 Window* wndGameDebug;
 Window* wndCurrent;
@@ -280,4 +282,9 @@
    cout << "Created game screen" << endl;
 
+   wndNewGame = new Window(0, 0, SCREEN_W, SCREEN_H);
+   wndNewGame->addComponent(new Button(880, 10, 120, 20, font, "Leave Game", leaveGame));
+
+   cout << "Created new game screen" << endl;
+
    goToLoginScreen();
  
@@ -467,4 +474,14 @@
             }
          }
+         else if (wndCurrent == wndNewGame)
+         {
+            ostringstream ossScoreBlue, ossScoreRed;
+
+            ossScoreBlue << "Blue: " << game->getBlueScore() << endl;
+            ossScoreRed << "Red: " << game->getRedScore() << endl;
+
+            al_draw_text(font, al_map_rgb(0, 255, 0), 330, 80, ALLEGRO_ALIGN_LEFT, ossScoreBlue.str().c_str());
+            al_draw_text(font, al_map_rgb(0, 255, 0), 515, 80, ALLEGRO_ALIGN_LEFT, ossScoreRed.str().c_str());
+         }
          else if (wndCurrent == wndGame)
          {
@@ -852,12 +869,10 @@
                cout << "Received a JOIN_GAME_SUCCESS message" << endl;
 
-               string gameName(msg.buffer);
-               
+               string gameName(msg.buffer);         
+               game = new Game(gameName, "../../data/map.txt");
                cout << "Game name: " << gameName << endl;
-               
-               game = new Game(gameName, "../../data/map.txt");
-
-               /*
+
                state = STATE_NEW_GAME;
+               wndCurrent = wndNewGame;
 
                msgTo.type = MSG_TYPE_JOIN_GAME_ACK;
@@ -865,5 +880,4 @@
 
                msgProcessor.sendMessage(&msgTo, sock, &server, &outputLog);
-               */
 
                break;
@@ -1299,2 +1313,16 @@
    msgProcessor.sendMessage(&msgTo, sock, &server, &outputLog);
 }
+
+void leaveGame()
+{
+   cout << "Leaving game" << endl;
+
+   game = NULL;
+   
+   state = STATE_LOBBY;
+   wndCurrent = wndLobby;
+
+   msgTo.type = MSG_TYPE_LEAVE_GAME;
+
+   msgProcessor.sendMessage(&msgTo, sock, &server, &outputLog);
+}
