perf tweaks for fight.py