Rehaul for Policy Gradient and Bot Implementation.