integration test for 2nd rule of poker
remove unnecessary code and fix errors