Fixed up Battle System code.

Note that mod still does not compile yet as there is issues
with Minecraft having changed the sound and gui code.