i presume you mean ``policy.getPlayer()`` in the error message...