updated to work with phaser timers instead of setInterval