Implements reward function as the expected score
gained given the action.