check matching color up, down, left and right of the selected tiles