Index: common/Message.cpp
===================================================================
--- common/Message.cpp	(revision ca44f829f24c3cc1c8b68b7811a002879b661c5c)
+++ common/Message.cpp	(revision 7b43385375bd02e506e07071412b3b79737213c2)
@@ -19,6 +19,4 @@
    int ret =  sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in));
 
-   cout << "Sent message of type " << msg->type << endl;
-
    return ret;
 }
@@ -31,7 +29,4 @@
    int ret =  recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, &socklen);
 
-   if (ret > -1)
-      cout << "Received message of type " << msg->type << endl;
-
    return ret;
 }
Index: common/Player.cpp
===================================================================
--- common/Player.cpp	(revision ca44f829f24c3cc1c8b68b7811a002879b661c5c)
+++ common/Player.cpp	(revision 7b43385375bd02e506e07071412b3b79737213c2)
@@ -98,4 +98,17 @@
       cout << "We're already at our target" << endl;
    else {
+      cout << "equals test:" << endl;
+      float f = 5.0;
+      int i = 5;
+
+      if (f == i)
+         cout << "test passed" << endl;
+      else
+         cout << "test failed" << endl;
+
+      cout << "Player about to be moved" << endl;
+      cout << "cur pos x: " << this->pos.x << endl;
+      cout << "cur pos y: " << this->pos.y << endl;
+
       float pixels = speed * (curTime-timeLastUpdated) / 1000.0;
       cout << "We need to move " << pixels << " pixels" << endl;
@@ -111,4 +124,7 @@
          pos.y += sin(angle)*pixels;
       }
+      cout << "new pos x: " << this->pos.x << endl;
+      cout << "new pos y: " << this->pos.y << endl;
+
    }
 
Index: common/WorldMap.cpp
===================================================================
--- common/WorldMap.cpp	(revision ca44f829f24c3cc1c8b68b7811a002879b661c5c)
+++ common/WorldMap.cpp	(revision 7b43385375bd02e506e07071412b3b79737213c2)
@@ -41,4 +41,5 @@
 void WorldMap::setElement(int x, int y, TerrainType t)
 {
+   cout << "getting element" << endl;
    (*(*vctMap)[x])[y] = t;
 }
Index: server/server.cpp
===================================================================
--- server/server.cpp	(revision ca44f829f24c3cc1c8b68b7811a002879b661c5c)
+++ server/server.cpp	(revision 7b43385375bd02e506e07071412b3b79737213c2)
@@ -109,5 +109,5 @@
    }
 
-   WorldMap* gameMap = NULL; //WorldMap::createDefaultMap();
+   WorldMap* gameMap = WorldMap::loadMapFromFile("../data/map.txt");
  
    sock = socket(AF_INET, SOCK_DGRAM, 0);
@@ -157,14 +157,14 @@
                error("sendMessage");
          }
-
-         // update player positions
-         map<unsigned int, Player>::iterator it;
-         for (it = mapPlayers.begin(); it != mapPlayers.end(); it++)
-         {
-            it->second.move();
-         }
-
-         broadcastPlayerPositions(mapPlayers, sock);
-      }
+      }
+
+      // update player positions
+      map<unsigned int, Player>::iterator it;
+      for (it = mapPlayers.begin(); it != mapPlayers.end(); it++)
+      {
+         it->second.move();
+      }
+
+      broadcastPlayerPositions(mapPlayers, sock);
    }
 
@@ -176,6 +176,4 @@
    DataAccess da;
 
-   cout << "ip address: " << inet_ntoa(from.sin_addr) << endl;
-   cout << "port: " << from.sin_port << endl;
    cout << "MSG: type: " << clientMsg.type << endl;
    cout << "MSG contents: " << clientMsg.buffer << endl;
@@ -299,6 +297,4 @@
       case MSG_TYPE_PLAYER_MOVE:
       {
-         cout << "Got a move message" << endl;
-
          istringstream iss;
          iss.str(clientMsg.buffer);
@@ -311,9 +307,9 @@
          memcpy(&x, clientMsg.buffer+4, 4);
          memcpy(&y, clientMsg.buffer+8, 4);
-         
+
          cout << "x: " << x << endl;
          cout << "y: " << y << endl;
          cout << "id: " << id << endl;
-
+         
          if ( mapPlayers[id].addr.sin_addr.s_addr == from.sin_addr.s_addr &&
               mapPlayers[id].addr.sin_port == from.sin_port )
@@ -323,23 +319,25 @@
                gameMap->getElement(x/25, y/25) == WorldMap::TERRAIN_GRASS)
             {
-               // first we get the correct vector 
+               cout << "valid terrain" << endl;
+
+               cout << "orig x: " << mapPlayers[id].pos.x << endl;
+               cout << "orig y: " << mapPlayers[id].pos.y << endl;
+               // first we get the correct vector
                mapPlayers[id].target.x = x;
                mapPlayers[id].target.y = y;
                int xDiff = mapPlayers[id].target.x - mapPlayers[id].pos.x;
                int yDiff = mapPlayers[id].target.y - mapPlayers[id].pos.y;
-               cout << "xDiff: " << xDiff << endl;               
-               cout << "yDiff: " << yDiff << endl;               
+               cout << "xDiff: " << xDiff << endl;
+               cout << "yDiff: " << yDiff << endl;
 
                // then we get the correct angle
                double angle = atan2(yDiff, xDiff);
-               cout << "angle: " << angle << endl;               
+               cout << "angle: " << angle << endl;
 
                // finally we use the angle to determine
                // how much the player moves
                // the player will move 50 pixels in the correct direction
-               mapPlayers[id].pos.x += cos(angle)*50;
-               mapPlayers[id].pos.y += sin(angle)*50;
-               cout << "new x: " << mapPlayers[id].pos.x << endl;               
-               cout << "new y: " << mapPlayers[id].pos.y << endl;               
+               //mapPlayers[id].pos.x += cos(angle)*50;
+               //mapPlayers[id].pos.y += sin(angle)*50;
 
                serverMsg.type = MSG_TYPE_PLAYER_MOVE;
