Background effect and different states using Phaser JS