It says working but it lies

It almost fulfills all ther requirements, the main problem is that it
just sells the same ticket over and over again and also prints out that
it cancels the wrong ticket.