injecting state and position trackers in main character object