Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 9c18cb7b02798d68273f2f76dc3ae07dcd31af04)
+++ client/Client/main.cpp	(revision df74597a9577a0cbce65843241b758fba7197099)
@@ -56,5 +56,5 @@
 void shutdownWinSock();
 void processMessage(NETWORK_MSG &msg, int &state, chat &chatConsole, WorldMap *gameMap, map<unsigned int, Player*>& mapPlayers,
-                    map<unsigned int, Projectile>& mapProjectiles, unsigned int& curPlayerId, int &scoreBlue, int &scoreRed);
+                    map<unsigned int, Projectile>& mapProjectiles, unsigned int& curPlayerId);
 int getRefreshRate(int width, int height);
 void drawMessageStatus(ALLEGRO_FONT* font);
@@ -81,6 +81,5 @@
    STATE_START,
    STATE_LOBBY,
-   STATE_GAME,
-   STATE_NEW_GAME
+   STATE_GAME
 };
 
@@ -140,6 +139,4 @@
    ofstream outputLog;
 
-   int scoreBlue, scoreRed;
-
    doexit = false;
    debugging = false;
@@ -148,7 +145,4 @@
    game = NULL;
    gameSummary = NULL;
-
-   scoreBlue = 0;
-   scoreRed = 0;
 
    state = STATE_START;
@@ -368,5 +362,5 @@
                break;
             case ALLEGRO_KEY_S:  // pickup an item next to you
-               if (state == STATE_GAME || state == STATE_NEW_GAME) {
+               if (state == STATE_GAME) {
                   msgTo.type = MSG_TYPE_PICKUP_FLAG;
                   memcpy(msgTo.buffer, &curPlayerId, 4);
@@ -375,5 +369,5 @@
                break;
             case ALLEGRO_KEY_D:  // drop the current item
-               if (state == STATE_GAME || state == STATE_NEW_GAME) {
+               if (state == STATE_GAME) {
                   Player* p = NULL;
                   try {
@@ -458,5 +452,5 @@
 
       if (msgProcessor.receiveMessage(&msgFrom, &from) >= 0)
-         processMessage(msgFrom, state, chatConsole, gameMap, mapPlayers, mapProjectiles, curPlayerId, scoreBlue, scoreRed);
+         processMessage(msgFrom, state, chatConsole, gameMap, mapPlayers, mapProjectiles, curPlayerId);
 
       if (redraw)
@@ -557,6 +551,6 @@
             ostringstream ossScoreBlue, ossScoreRed;
 
-            ossScoreBlue << "Blue: " << scoreBlue << endl;
-            ossScoreRed << "Red: " << scoreRed << endl;
+            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());
@@ -711,5 +705,5 @@
 
 void processMessage(NETWORK_MSG &msg, int &state, chat &chatConsole, WorldMap *gameMap, map<unsigned int, Player*>& mapPlayers,
-                    map<unsigned int, Projectile>& mapProjectiles, unsigned int& curPlayerId, int &scoreBlue, int &scoreRed)
+                    map<unsigned int, Projectile>& mapProjectiles, unsigned int& curPlayerId)
 {
    // this is outdated since most messages now don't contain just a text string
@@ -739,7 +733,6 @@
       }
       case STATE_LOBBY:
+      {
          cout << "In STATE_LOBBY" << endl;
-      case STATE_GAME:
-      {
          switch(msg.type)
          {
@@ -875,11 +868,4 @@
                break;
             }
-            case MSG_TYPE_SCORE:
-            {
-               memcpy(&scoreBlue, msg.buffer, 4);
-               memcpy(&scoreRed, msg.buffer+4, 4);
- 
-               break;
-            }
             case MSG_TYPE_ATTACK:
             {
@@ -965,5 +951,5 @@
                cout << "Game name: " << gameName << endl;
 
-               state = STATE_NEW_GAME;
+               state = STATE_GAME;
                wndCurrent = wndNewGame;
 
@@ -991,7 +977,7 @@
          break;
       }
-      case STATE_NEW_GAME:
+      case STATE_GAME:
       {
-         cout << "(STATE_NEW_GAME) ";
+         cout << "(STATE_GAME) ";
          switch(msg.type)
          {
@@ -1125,5 +1111,5 @@
             case MSG_TYPE_OBJECT:
             {
-               cout << "Received object message in STATE_NEW_GAME" << endl;
+               cout << "Received object message in STATE_GAME" << endl;
 
                WorldMap::Object o(0, WorldMap::OBJECT_NONE, 0, 0);
@@ -1381,8 +1367,4 @@
       txtCreateGame->clear();
       break;
-   case STATE_GAME:
-      txtChat->clear();
-      chatConsole.clear();
-      break;
    default:
       cout << "Logout called from invalid state: " << state << endl;
