Added the functionality for leveling up. Note that it automatically levels up after each battle until the api call gets set up. Fixes #42