Policy Gradient based controller for simple 2D modular arm