Math in Grid | HTML5 Game - Phaser 4