Refactored some code for a game character class hierarchy including AIs