Inmate explains why he killed his cell mate