A simple game model example using p2.js and Pixi.js