Update server.c

Working server.