Enabled animation and labels in example.
Reset $ value to 0 when deselecting a tile.