if ($this.scene.isChecking === false) { $this.frameIndex($this.picture); if (!$this.scene.firstCard) { $this.scene.firstCard = $this; } else if ($this != $this.scene.firstCard){ $this.scene.secondCard = $this; $this.scene.ischecking = true; createTimer(1000, $this.scene.checkMatch, false); } }