Punch and Judy simulation written with Java and JASON