Almost complete, still have to implement the feature for packets to directly go to Q2 when there are sufficient tokens on its arrival