Battle management code improvement
Content:
1)Some code is moved to classes.rpy
2)Minor style improvements