server_main and client_main work

I just need to fix some output strings but for the most part it works
well... I left it where it creates the tcp socket so fromt there we can
call the function playnim with the tcp socket as a parameter