An attempt to code the game greed