Moved sound support to it's own file.
Fixed some types in battle.c