poker game logic for comparing hands