AHHHHHH isEndofBattle not working