fixed netcode to work properly n not break

- received messages are split up into individual mesages, and checked
for completeness, if mesasge is not complete, the partial message is
saved and the client/server waits for the rest of the message