Update server.c

got the checkWord to print what i want