Fixed syntax error where optional chaining (?.) was used for assignment in updateStats method. Changed to use if checks for null-protection.
Fixed syntax error where optional chaining (?.) was used for assignment in updateStats method. Changed to use if checks for null-protection.