This may be what Robbie Dee is tying to tell be but I am just not following Only track total bet by player, last aggressor, and if they are folded or not 1) determine minimum bet from all player in the pot and player not folded 2) remove that amount from the every player (including folded) bet and sum it into a side-pot 3) based on hand strength divvy up that side pot to player stacks if a split (tie) and there are odd chips then donate that to the next side pot if last side-pot the odd chips go to last aggressor (that part I am not sure of actual rules but odd chips are a relatively small amount of money) 4) reset side-pot to zero (plus left over) 5) go to 1) if any player any player has any bet left (a hand cannot end with every hand folded)