Comparison between Sarsa and Q-Learning algorithms on risk handling