exists跟getcolor會造成遊戲凍結,還有別的方式可以辨識畫面嗎?