need to add init function to actor and hero. strange segmentation fault happening