Decision making processes in the fruit fly: a computational model