Potential Based Reward Shaping