You've probably worked it out by now, but events 24 and 26 conflict with each other.
scorebrain=10 -> set "scorebrain" to 10
scorebrain?0 -> set "scorebrain" to 0
I don't really understand your scoring system, either. Surely it's constantly resetting to 0 because of event 29?