method to check whether two frogs can mate