Reward Function Error

Error in calculating the final reward (for some reason each step gives
it plus 9? or more like 10 - 1) nvm...