refactored policyEvaluation(). Removed useless local vars