added reward shaping with potential-based reward shaping.