Server to Client Logic

The server to client logic is completely done.