add invalid tickets support
replace 'ticket_tail ++'
Merge branch 'master' of https://github.com/whynpc/CS111