Fixed printout statement for which trial is running to use correct variable "j"