extract Duece rule
rename deuce -> duece
extract both equal rule
extract player a win rule
extract player b win rule
refactor rules to loop