WE MADE ISENDOFBATTLE WORK

It works :D Now we just need to implement what we want to do during the
rest turn. Yay.