Update server.c

This is what I have so far, it only does 1 client but the main idea is there. Feel free to add and change things.