Goal Recognition using Actor-Critic Optimization