state management and positioning to hero object