Attempting to fix hero out of bounds error