Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 4c202e03e18521e3e047e3fe3bb4fff4072824a6)
+++ client/Client/main.cpp	(revision 60776f2940bf52bf8f8f0293de78b27fdbcf11ac)
@@ -371,4 +371,6 @@
 {
    string response = string(msg.buffer);
+
+   cout << "Got message: " << msg.type << endl;
 
    switch(state)
@@ -437,9 +439,10 @@
             case MSG_TYPE_PLAYER:
             {
-               Player p = *(Player*)(&(msg.buffer));
-
-               cout << "p.name: " << p.name;
-               cout << "p.pos.x: " << p.pos.x;
-               cout << "p.pos.y: " << p.pos.y;
+               Player p("", "");
+               p.deserialize(msg.buffer);
+
+               cout << "p.name: " << p.name << endl;
+               cout << "p.pos.x: " << p.pos.x << endl;
+               cout << "p.pos.y: " << p.pos.y << endl;
 
                break;
