Replace my own code to phaser.gemmatch code