Fix reward bug -- reward misattributed to previous trial!

Signed-off-by: Andrew McKinney <mckinney@neuro.duke.edu>