Update lab3.c

added a tail to the queue, this may fix my problems