refactor code

rename some var for extension, give hero magic skill growth, add
magic-skill-damage-ratio for hero magic damage calculation, add
config.txt and CONFIG for openning some config logic to player