Imported from https://github.com/mathformoso/RL-playground---ddpg