Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision b28e2bf84baf3ab5259123a9734db778d51f32ce)
+++ client/Client/main.cpp	(revision 4c009353f6871ae833af39d929789286e4677e2c)
@@ -142,6 +142,5 @@
 Player* currentPlayer;
 
-int honorPoints;
-int numGames;
+int honorPoints, wins, losses, numGames;
 int** gameHistory;
 
@@ -166,4 +165,6 @@
 
    honorPoints = 0;
+   wins = 0;
+   losses = 0;
    numGames = 0;
    gameHistory = NULL;
@@ -450,4 +451,14 @@
             oss.str("");
 
+            oss << "Wins: " << wins << endl;
+            al_draw_text(font, al_map_rgb(0, 255, 0), 65, 105, ALLEGRO_ALIGN_LEFT, oss.str().c_str());
+            oss.clear();
+            oss.str("");
+
+            oss << "Loses: " << losses << endl;
+            al_draw_text(font, al_map_rgb(0, 255, 0), 65, 120, ALLEGRO_ALIGN_LEFT, oss.str().c_str());
+            oss.clear();
+            oss.str("");
+
             // display records of the last 10 games
             for (int i=0; i<numGames; i++) {
@@ -458,20 +469,20 @@
                   oss << "VICTORY" << endl;
 
-               al_draw_text(font, al_map_rgb(0, 255, 0), 142, 160+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
+               al_draw_text(font, al_map_rgb(0, 255, 0), 142, 190+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
                oss.clear();
                oss.str("");
 
                oss << gameHistory[i][2] << endl;
-               al_draw_text(font, al_map_rgb(0, 255, 0), 302, 160+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
+               al_draw_text(font, al_map_rgb(0, 255, 0), 302, 190+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
                oss.clear();
                oss.str("");
 
                oss << gameHistory[i][3] << endl;
-               al_draw_text(font, al_map_rgb(0, 255, 0), 462, 160+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
+               al_draw_text(font, al_map_rgb(0, 255, 0), 462, 190+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
                oss.clear();
                oss.str("");
 
                oss << "6/11/2014, 5:12 PM" << endl;
-               al_draw_text(font, al_map_rgb(0, 255, 0), 622, 160+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
+               al_draw_text(font, al_map_rgb(0, 255, 0), 622, 190+30*(i+1), ALLEGRO_ALIGN_CENTRE, oss.str().c_str());
                oss.clear();
                oss.str("");
@@ -758,10 +769,10 @@
    wndProfile = new Window(0, 0, SCREEN_W, SCREEN_H);
    vctComponents.push_back(wndProfile->addComponent(new TextLabel(450, 40, 124, 20, font, "Profile", ALLEGRO_ALIGN_CENTRE)));
-   vctComponents.push_back(wndProfile->addComponent(new TextLabel(160, 120, 124, 20, font, "Game History", ALLEGRO_ALIGN_CENTRE)));
-   vctComponents.push_back(wndProfile->addComponent(new TextLabel(600, 160, 124, 20, font, "Time", ALLEGRO_ALIGN_CENTRE)));
-   vctComponents.push_back(wndProfile->addComponent(new TextLabel(80, 160, 124, 20, font, "Result", ALLEGRO_ALIGN_CENTRE)));
-   vctComponents.push_back(wndProfile->addComponent(new TextLabel(240, 160, 124, 20, font, "Blue Score", ALLEGRO_ALIGN_CENTRE)));
-   vctComponents.push_back(wndProfile->addComponent(new TextLabel(400, 160, 124, 20, font, "Red Score", ALLEGRO_ALIGN_CENTRE)));
-   vctComponents.push_back(wndProfile->addComponent(new TextLabel(560, 160, 124, 20, font, "Time", ALLEGRO_ALIGN_CENTRE)));
+   vctComponents.push_back(wndProfile->addComponent(new TextLabel(160, 150, 124, 20, font, "Game History", ALLEGRO_ALIGN_CENTRE)));
+   vctComponents.push_back(wndProfile->addComponent(new TextLabel(600, 190, 124, 20, font, "Time", ALLEGRO_ALIGN_CENTRE)));
+   vctComponents.push_back(wndProfile->addComponent(new TextLabel(80, 190, 124, 20, font, "Result", ALLEGRO_ALIGN_CENTRE)));
+   vctComponents.push_back(wndProfile->addComponent(new TextLabel(240, 190, 124, 20, font, "Blue Score", ALLEGRO_ALIGN_CENTRE)));
+   vctComponents.push_back(wndProfile->addComponent(new TextLabel(400, 190, 124, 20, font, "Red Score", ALLEGRO_ALIGN_CENTRE)));
+   vctComponents.push_back(wndProfile->addComponent(new TextLabel(560, 190, 124, 20, font, "Time", ALLEGRO_ALIGN_CENTRE)));
    vctComponents.push_back(wndProfile->addComponent(new Button(920, 738, 80, 20, font, "Back", goToLobbyScreen)));
 
@@ -903,5 +914,7 @@
             {
                memcpy(&honorPoints, msg.buffer, 4);
-               memcpy(&numGames, msg.buffer+4, 4);
+               memcpy(&wins, msg.buffer+4, 4);
+               memcpy(&losses, msg.buffer+8, 4);
+               memcpy(&numGames, msg.buffer+12, 4);
 
                cout << "Got records for " << numGames << " games." << endl;
@@ -911,8 +924,8 @@
                   cout << endl << "game record " << (i+1) << endl;
 
-                  memcpy(&gameHistory[i][0], msg.buffer+8+i*16, 4);
-                  memcpy(&gameHistory[i][1], msg.buffer+12+i*16, 4);
-                  memcpy(&gameHistory[i][2], msg.buffer+16+i*16, 4);
-                  memcpy(&gameHistory[i][3], msg.buffer+20+i*16, 4);
+                  memcpy(&gameHistory[i][0], msg.buffer+16+i*16, 4);
+                  memcpy(&gameHistory[i][1], msg.buffer+20+i*16, 4);
+                  memcpy(&gameHistory[i][2], msg.buffer+24+i*16, 4);
+                  memcpy(&gameHistory[i][3], msg.buffer+28+i*16, 4);
 
                   cout << "result: " << gameHistory[i][0] << endl;
@@ -1460,4 +1473,6 @@
    msgTo.type = MSG_TYPE_PROFILE;
 
+   unsigned int playerId = currentPlayer->getId();
+   memcpy(msgTo.buffer, &playerId, 4);
    msgProcessor.sendMessage(&msgTo, &server);
 }
