just two question :
1) i need to know number of panel when player clicked on it, becuase he should click on two panels and they should change their position with each other ?
2) how can i understand there are three or more panels in a line, have same picture .(so important)
if there were in a line and had same picture , i should delete them and create new panels ...
Thanks everyone, Especially somebody who helped me

.