added poker function and test cases