The function for check if a pento is good is implemented