Tom Sawyer saw him murder Dr. Robinson in the cemetery & testified against him in court
The boys watch in horror as Injun Joe murders Dr. Robinson during a 
fight, and ... At the last minute he decides against the plan, kisses her, and leaves
.