Unfortunately, you will have to beat him again and hopefully not get stuck this time. The problem is not in the code but it happens when the server's bandwidth reaches its limits (bandwidth is reset after a reboot). Try to battle him next time right after a reboot to avoid getting stuck.
We are trying to look into how to avoid these deadlocks. In the meantime, please bear with us.
Thanks,
Unknown007