Fixed the code by defining and assigning correctly the static array of decision
functions.

TODO:
Make an array to log the already used and unsucessful decision functions
Function to change the decicion function according to the sum of the
payoffs in the memory