Connect the dots game in Javascript using pixi.js