Remove magic constants and extract AI logic from  main Poker function