clean up
Refactor battleGraphic.ts
Hopefully there's no bug...