Modified for pokerstars, tests all passing