A simple algorithm that validates played poker