logic for split pot