changed reward function to not reward multiply negative rewards