fixed battle logging code