refactor poker integration