Add checkPoly function which is prevesoly (سابقا ) with click function just add it to new function