Added more confusing head and tail vars. Fixed condition for blocking on read and write of myTCP