Index: server/server.cpp
===================================================================
--- server/server.cpp	(revision c76134b649c8642dc32a25d3f703e75387b50cc0)
+++ server/server.cpp	(revision 5a5f131da3494898fa508a51e9526afc3f65ab16)
@@ -176,4 +176,6 @@
 
                   it->second.pos = spawnPos.toFloat();
+                  it->second.target = spawnPos;
+                  it->second.health = it->second.maxHealth;
 
                   serverMsg.type = MSG_TYPE_PLAYER;
@@ -209,5 +211,4 @@
          bool broadcastMove = false;
          for (it = mapPlayers.begin(); it != mapPlayers.end(); it++) {
-            cout << "Starting new for loop iteration" << endl;
             oldPos = it->second.pos;
             if (it->second.move(gameMap)) {
@@ -440,8 +441,5 @@
          }
 
-         cout << "Done with the for loop" << endl;
-
          // move all projectiles
-         cout << "Moving projectiles" << endl;
          map<unsigned int, Projectile>::iterator itProj;
          for (itProj = mapProjectiles.begin(); itProj != mapProjectiles.end(); itProj++) {
@@ -481,5 +479,4 @@
          }
       }
-      cout << "Done moving projectiles" << endl;
 
       n = receiveMessage(&clientMsg, sock, &from);
@@ -904,4 +901,5 @@
       p->health = 0;
    if (p->health == 0) {
+      cout << "Player died" << endl;
       p->isDead = true;
       p->timeDied = getCurrentMillis();
