Fixing reward and adding all basis functions to gradient bot.