teenpatti algorithm.