An example JavaScript game using CSP