Update hunter.c

Changed <time.h> to <sys/time.h>
Fixed small bugs such as if(... = ...)
Fixed some memory leaks (mallocs not being freed) - Including randomLoc().