Fixed possible crash if row was out of bounds
Rewrote action_policy to be more concise and efficient
Can now call sarsa to initiate a search from origin