rewrote the controller in PIXI.js