Rewrite engine using pixi.js