Fixed bugs, added functionality

- Added auto gold update
- Added mana regain
- Added missing functions
- Added set cooldown function
- Fixed object deletion (memory management)