Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 85da77837157eedc745cb17c9d85ec1f2ad811c2)
+++ client/Client/main.cpp	(revision 35d702deba34ba98393329248e4e44593d4638b3)
@@ -61,5 +61,5 @@
 void createGui(ALLEGRO_FONT* font);
 
-void processMessage(NETWORK_MSG &msg, int &state, chat &chatConsole, map<unsigned int, Player*>& mapPlayers, map<string, int>& mapGames, unsigned int& curPlayerId);
+void processMessage(NETWORK_MSG &msg, int &state, chat &chatConsole, map<unsigned int, Player*>& mapPlayers, map<string, int>& mapGames, unsigned int& curPlayerId, string& alertMessage);
 void handleMsgPlayer(NETWORK_MSG &msg, map<unsigned int, Player*>& mapPlayers, map<string, int>& mapGames);
 void handleMsgGameInfo(NETWORK_MSG &msg, map<unsigned int, Player*>& mapPlayers, map<string, int>& mapGames);
@@ -147,4 +147,6 @@
 MessageProcessor msgProcessor;
 
+string alertMessage;
+
 int main(int argc, char **argv)
 {
@@ -169,4 +171,6 @@
    numGames = 0;
    gameHistory = NULL;
+
+   alertMessage = "";
 
    state = STATE_START;
@@ -401,5 +405,5 @@
 
       if (msgProcessor.receiveMessage(&msgFrom, &from) >= 0)
-         processMessage(msgFrom, state, chatConsole, mapPlayers, mapGames, curPlayerId);
+         processMessage(msgFrom, state, chatConsole, mapPlayers, mapGames, curPlayerId, alertMessage);
 
       if (redraw)
@@ -442,4 +446,6 @@
                i++;
             }
+
+            al_draw_text(font, al_map_rgb(0, 255, 0), SCREEN_W/2, 15, ALLEGRO_ALIGN_CENTER, alertMessage.c_str());
          }
          else if (wndCurrent == wndProfile)
@@ -821,5 +827,5 @@
 }
 
-void processMessage(NETWORK_MSG &msg, int &state, chat &chatConsole, map<unsigned int, Player*>& mapPlayers, map<string, int>& mapGames, unsigned int& curPlayerId)
+void processMessage(NETWORK_MSG &msg, int &state, chat &chatConsole, map<unsigned int, Player*>& mapPlayers, map<string, int>& mapGames, unsigned int& curPlayerId, string& alertMessage)
 {
    cout << "Total players in map: " << mapPlayers.size() << endl;
@@ -1003,4 +1009,11 @@
                break;
             }
+            case MSG_TYPE_CREATE_GAME_FAILURE:
+            {
+               cout << "Received a CREATE_GAME_FAILURE message" << endl;
+               alertMessage = "Game could not be created because one exists with that name";
+
+               break;
+            }
             case MSG_TYPE_PLAYER:
             {
@@ -1087,4 +1100,5 @@
                state = STATE_LOBBY;
                wndCurrent = wndGameSummary;
+               alertMessage = "";
 
                break;
@@ -1459,4 +1473,5 @@
 
    state = STATE_LOBBY;
+   alertMessage = "";
 }
 
@@ -1589,4 +1604,5 @@
    state = STATE_LOBBY;
    wndCurrent = wndLobby;
+   alertMessage = "";
 
    msgTo.type = MSG_TYPE_LEAVE_GAME;
