moved helper functions, fixed "undefined" errors, more aggressive hero