Move score recording and total reset into conditional