Some tweaks to the algorithm

`repeat` was, along with some other factors, incorrectly causing low
scored cards to automatically reset themselves.