An optimal foraging simulator using Reinforcement Learning